[RMVX ACE] GALV'S TIMED BUTTON ATTACKS: EVADING STATES ON SUCCESSFUL BUTTON PRESS
Posts
Pages:
1
I am currently using Galv's Timed Button attacks. I need help in implementing a feature where the % rate chance of applying a state changes when a button is successfully pressed. The process I came up with was a little like this:
STATE_DEF_RATE = x
STATE_ATK_RATE = x
class RPG::BaseItem
def state_change_r
if @state_change_r.nil?
if @note =~ /<statechange(.*)>/i
@state_change_r = $1.to_i
else
if defending is active
@state_change_r = STATE_DEF_RATE
else
@state_change_r = STATE_ATK_RATE
end
end
end
end
end
class Game_BattlerBase
def state_rate
if state_change_r = value
state_rate = desired rate value
else
normal state_rate value specified in database menu will be applied
end
end
end
I'm a beginner at Ruby scripting, and this attempt only resulted in a lot of NoMethodErrors.
I have asked Galv about making a few edits to the script. Unfortunately, Galv is no longer working on the script.
You can view the working edited version of the script here: https://pastebin.com/ZzrZ2x84
This is Galv's original version https://galvs-scripts.com/galvs-timed-button-attacks/
STATE_DEF_RATE = x
STATE_ATK_RATE = x
class RPG::BaseItem
def state_change_r
if @state_change_r.nil?
if @note =~ /<statechange(.*)>/i
@state_change_r = $1.to_i
else
if defending is active
@state_change_r = STATE_DEF_RATE
else
@state_change_r = STATE_ATK_RATE
end
end
end
end
end
class Game_BattlerBase
def state_rate
if state_change_r = value
state_rate = desired rate value
else
normal state_rate value specified in database menu will be applied
end
end
end
I'm a beginner at Ruby scripting, and this attempt only resulted in a lot of NoMethodErrors.
I have asked Galv about making a few edits to the script. Unfortunately, Galv is no longer working on the script.
You can view the working edited version of the script here: https://pastebin.com/ZzrZ2x84
This is Galv's original version https://galvs-scripts.com/galvs-timed-button-attacks/
Pages:
1













