I created a state which applies 0 opacity and applies <cannot select> using yanfly selection control. What I want is that the user who is in the stealth state should only be able to apply states to allies and themselves plus healing. The moment the user decides to attack they should leave the stealth state. I tried using this piece of code within the state but it's not working.
I've searched many places for "remove state after attacking"but I can't find anything solid. Thank you.
Code:
<custom respond effect>
user.removeState(45);
</custom respond effect>
I've searched many places for "remove state after attacking"but I can't find anything solid. Thank you.