Remove state resist from enemy trait.

I've been going through hell trying to work around this problem and I can't see any way else other than to get a script call or something to forcefully remove a state resist from an enemy's traits.


State resist removal.png


What I am trying to accomplish here is a weak point type battle, destroying the green hover van results in an explosion that kills all enemies granting an instant victory.

The problem however is I cannot apply an animation on an enemy that is dead and no longer existing on the battle field.
To counter this I apply to the van's traits a state resist: death.
The problem that follows this annoying thing is I cannot remove that state. Like at all.

I don't know how to command/trick the program into doing so, so my last resort is to ask for some kind of plugin or script call that can manually remove the state resist.
traits are static in the database. If the enemy contains a trait in the database, then you cannot remove that trait.

there are only two ways to accomplish what you want: either install a plugin for dynamic traits, or give the immortality not by trait in database but by immortal state that is applied at the beginning of the combat. then you can later remove the immortal state with that trait.

Original thread: https://forums.rpgmakerweb.com/threads/remove-state-resist-from-enemy-trait.138609/