Ah, two very useful scripts... https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/field-state-effects/
and http://forums.rpgmakerweb.com/index.php?/topic/14110-stacking-states/
but no matter how you position them, Stacking States will not work with Field States.
That is because of line 459 of Field State Effects
alias game_battlerbase_states_fse states def states result = game_battlerbase_states_fse result |= field_states unless @anti_field_states return result endI'm not sure what the process |= does in ruby as searching up '|=' of course does not return results, but it seems as if this process somehow removes the duplicate states of Stacking States.
This can be tested by having the state Poison multiply ATK by 200%, and adding the state via the call
$game_party.all_members.each {|mem| mem.add_state(2); mem.add_state(2)}ATK will only be multiplied by 200 despite the stack count for Poison saying 2, whereas it should be multiplied by 400%.
I already had to make the adjustment to Stacking States to work with Field State Effects
and http://forums.rpgmakerweb.com/index.php?/topic/14110-stacking-states/
but no matter how you position them, Stacking States will not work with Field States.
That is because of line 459 of Field State Effects
alias game_battlerbase_states_fse states def states result = game_battlerbase_states_fse result |= field_states unless @anti_field_states return result endI'm not sure what the process |= does in ruby as searching up '|=' of course does not return results, but it seems as if this process somehow removes the duplicate states of Stacking States.
This can be tested by having the state Poison multiply ATK by 200%, and adding the state via the call
$game_party.all_members.each {|mem| mem.add_state(2); mem.add_state(2)}ATK will only be multiplied by 200 despite the stack count for Poison saying 2, whereas it should be multiplied by 400%.
I already had to make the adjustment to Stacking States to work with Field State Effects
Code:
def update_state_turns states.uniq.each do |state| #my edit-- states with no state turns (like field states) do not #have their state turns reduced #-- #@state_turns[state.id] -= 1 if @state_turns[state.id] > 0 if @state_turns[state.id] != nil @state_turns[state.id] -= 1 if @state_turns[state.id] > 0 end #-- end end