Create a plain HIDDEN status effect (without any props). On death animation, make a check to see if the status is still applied: if it is still on the combatant, remove the status with the event and perform revive, if is no more applied (second time he dies in current battle), perform death animation normally. Of course, you must add the status to the combatant when battle start, you can simply do it with "change status value" step in Battle Start Event.
Maybe it is not a perfect solution, but i suppose it can work. :)
1)if you do with with equipment you can check to see if the items equiped in the death event
2) if you do it with status effects you have to check to see if its still there with in your death event
3)if you want it once per battle you can set up a global bool (or object bool ) to do a check in the death event (i believe in the death event as long as you dont got auto destroy on) and if your bool is true do revive other wise do nothing or destroy object or what ever you want ^^
Create a plain HIDDEN status effect (without any props).
On death animation, make a check to see if the status is still applied: if it is still on the combatant, remove the status with the event and perform revive, if is no more applied (second time he dies in current battle), perform death animation normally.
Of course, you must add the status to the combatant when battle start, you can simply do it with "change status value" step in Battle Start Event.
Maybe it is not a perfect solution, but i suppose it can work. :)
My old entry for Indie Game Making Contest 2015
event
2) if you do it with status effects you have to check to see if its still there with in your death event
3)if you want it once per battle you can set up a global bool (or object bool ) to do a check in the death event (i believe in the death event as long as you dont got auto destroy on) and if your bool is true do revive other wise do nothing or destroy object or what ever you want ^^
those are the basic ways of going about it
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames