I'm using Action Sequences and trying to implement a certain code on a Skill that has a chance of putting the target to sleep. If the target is put to sleep, it plays an animation. If the skill misses, however, it will instead display text showing that the skill failed. However, even though I am sure I got the code right, it doesn't seem to be working properly.
I've double checked that state 10 is the sleep state. Common event 62 is the event displaying the text. There is only one party member, so the target will always be index 0 (though i tested with other numbers just in case).
Every time I use the skill, even if the target is put to sleep, it displays the text from the common event as though it had failed.
I have no idea what I'm doing wrong, my syntax looks fine as far as I can tell. I could use some guidance here.
<target action>
action animation
wait for animation
action effect
if $gameParty.members[0].isStateAffected(10) == true
animation 62: target
wait for animation
else
common event: 62
end
</target action>
I've double checked that state 10 is the sleep state. Common event 62 is the event displaying the text. There is only one party member, so the target will always be index 0 (though i tested with other numbers just in case).
Every time I use the skill, even if the target is put to sleep, it displays the text from the common event as though it had failed.
I have no idea what I'm doing wrong, my syntax looks fine as far as I can tell. I could use some guidance here.