Replicating Lost Odyssey Immortals Mechanic

I'm trying to replicate a mechanic from lost odyssey. In the game, certain characters were immortal. If they were killed they would revive several turns later. I'm wanting to implement this as a mechanic for a character in my game but have no idea where to start.
I'm somewhat familiar with the mechanic. To start you may want to look here.


In this post, a lot of Yanfly's former tips and tricks were converted to MZ using the VS plugins. The auto-life is close to what you want, although I think you would want the actors to remain dead for a few turns. You would probably need to play with the script to achieve "if actor has been dead for a few turns" but I would think it can be achieved.
If it's not even a state but a character ability, you can just make a (base)troop event that checks every turn if the character is dead and if it is add +1 to a variable. If the variables is 3, revive the character and set the variable to 0.

EDIT: Set it to 0 at battle start or end.
hehe, I was exploring that thread and got a few ideas, so im gonna play around a bit and see what I come up with. Mechanically its working ( clunky, but can touch up the visuals ) but its a work in progress. Thanks for the resource, the thread is exceedingly helpful 🙂

Original thread: https://forums.rpgmakerweb.com/threads/replicating-lost-odyssey-immortals-mechanic.178110/