Each state has a set turn duration, but I was wondering if it can be extended via a scripts so they can last longer or shorter depending on the battle.
Once such problem is when using a move that gives you many positive states for one turn, but the states stand alone last for longer. The script would be used to change the duration accordingly.
I was wondering if there is a script that exists such as "extendstate([actor],[stateno.],[turnduration])" that would be able to alter the length of a state on any actor at when called.
I've noticed the code in the "Game_Battler" section of the script but I'm not sure how to link to an actor nor alter anything contained in it.
#--------------------------------------------------------------------------
# * Update State Turn Count
#--------------------------------------------------------------------------
def update_state_turns
states.each do |state|
@state_turns[state.id] -= 1 if @state_turns[state.id] > 0
end
end
# * Update State Turn Count
#--------------------------------------------------------------------------
def update_state_turns
states.each do |state|
@state_turns[state.id] -= 1 if @state_turns[state.id] > 0
end
end
Is something like this possible? I'm not sure how to tackle it. Many thanks in advance if someone can help.