I need a script call

I need a script to know if an actor[n] has a state[n] and if it's true, remove the state...


TY in advance o7
You can do this with events pretty easily under the conditional branch.


Screenshot_5.png


And the change state command.


Screenshot_6.png


And if you specifically need a script call for it, it'd be easier to put this in a common event then call that common event via script call.
 


$game_temp.reserve_common_event(id)


Just replace 'id' with the id of your common event.
TY!

Original thread: https://forums.rpgmakerweb.com/threads/i-need-a-script-call.67654/