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
Mar 4 2012, 05:03 AM
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
DrDhoom
Mar 4 2012, 05:25 AM
no, you don't have to... just create it, then setup in the script
jamie121212
Mar 4 2012, 05:46 PM
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.