I am using a picture to display my character in front-view battles. I would like the picture to change to an "off-balance" variant whenever it is affected by the state "off-balance". I thought to use a common event tied to the state like I would with a skill for example but it seems like I cannot use a common event for "states". For now, I've been using this work-around in a battle event page with the Conditions: Turn end and Span: Turn
It seems to work as intended except when the "off-balance" state wears off, the picture change to "player_normal" is being delayed towards the turn end, due to the condition trigger. So the question is how do I make the picture change as soon as the state is removed, or even taking one step back, is there a better way to make this whole "state affects player picture so long as state is active" thing to work properly?
JavaScript:
◆If:Player is affected by off-balance
◆Erase Picture:#1
◆Show Picture:#2, player_off_balance
◆
:Else
◆Erase Picture:#2
◆Show Picture:#1, player_normal
◆
:End
It seems to work as intended except when the "off-balance" state wears off, the picture change to "player_normal" is being delayed towards the turn end, due to the condition trigger. So the question is how do I make the picture change as soon as the state is removed, or even taking one step back, is there a better way to make this whole "state affects player picture so long as state is active" thing to work properly?