I'm developing a custom game over system in RPG Maker, and I'm leaving the default #1 Death state for the enemies only. Actors resist this state and instead go into a custom "Defeated" State. If all party members are in this state, the battle is set to end and go to a screen that allows them to either "seek guidance", where they get hints on how to win the battle, retry the battle/scene, restore, or quit the game. It also includes a little counter letting them know how many times they've been defeated.
So far I've gotten it to work well without much scripting (Combination of custom battle, common events, a special "game over" map, and a switch/variable combo). The only bug I'm seeing with the system is that even with the Target Rate set at 0, AOE attacks and heals can still affect the downed actor, and the actor can be a target for individual healing spells. Moreover, any "revival" spells are currently set to affect anyone not in that state.
Is there a subscript/conditional check script I can set up so that the enemy (and other actors, for that matter) treat the "Defeated" state actor like he/she is dead, and can I set it so that only certain spells can work on the character while in that state, just like revival spells do for dead actors?
So far I've gotten it to work well without much scripting (Combination of custom battle, common events, a special "game over" map, and a switch/variable combo). The only bug I'm seeing with the system is that even with the Target Rate set at 0, AOE attacks and heals can still affect the downed actor, and the actor can be a target for individual healing spells. Moreover, any "revival" spells are currently set to affect anyone not in that state.
Is there a subscript/conditional check script I can set up so that the enemy (and other actors, for that matter) treat the "Defeated" state actor like he/she is dead, and can I set it so that only certain spells can work on the character while in that state, just like revival spells do for dead actors?