This is perfect, works flawlessly, thanks a lot once again!
Reapplying prior state to a target.
RPG Maker MZ SupportWould that apply for adding a new state too?
Example:
<JS On Erase State>
"give user state.id(11)" [havent figured out how to give user state]
<JS On Erase State>
The addState() function is in the code you quoted.
Also, your notetag wouldn't work because you don't close it correctly.
@whiteswords12, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
If you need help please make your own thread with details about your problem.
Original thread: https://forums.rpgmakerweb.com/threads/reapplying-prior-state-to-a-target.172142/