Help - Search - Members - Calendar
Full Version: Non % posion damage script
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Ace Discussion
jamie121212
is there a script for ace that will let me use a set amount for slip damage instead of a percent?
or one from vx that could be ported over?
DrDhoom
try this
script
CODE
#===============================================================================
#---------------------------=• by: DrDhoom •=-----------------------------------
#===============================================================================

module Dhoom
  module SlipDamage    
    #STATE_SLIP = [[States ID, Amount of Slip Damage],[States ID, Amount of Slip Damage],...]
    STATE_SLIP = [[26,30],[27,15]]
  end
end

class Game_Battler < Game_BattlerBase
  
  include Dhoom::SlipDamage
  
  alias dhoom_slpdmg_regen_hp regenerate_hp
    
  def regenerate_hp
    dhoom_slpdmg_regen_hp
    @slip_dmg = 0
    for state in STATE_SLIP
      if state?(state[0])
        @slip_dmg += state[1]
      end
    end
    self.hp -= @slip_dmg
  end
end
jamie121212
is there a certain way to set up the skills? or the script itself? at the top i have it set as STATE_SLIP = [[26,15],[27,35],[28,50]]
and thanks for helping smile.gif
DrDhoom
no, you don't have to...
just create it, then setup in the script smile.gif
jamie121212
nevermind, its working just not showing the damage the state is dealing
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.