End of Battle Edit Script

I don't like how VX Ace makes actors still dead on the overworld after a battle. I would like a script that auto-revives all dead actors with 1 HP at the end of a battle.
Is this ALL battles, or just on a particular map?


In BattleManager, add the following line as the first command in both the self.process_victory and self.process_abort methods:

Code:
revive_battle_members
^ this will do it on ALL maps. If you only want to do it on one particular map, do the following instead (I'll use map 5 as the overworld map for an example):
Code:
revive_battle_members if $game_map.map_id == 5
I'm confused... Do I add it to a default VX Ace Script or a Script Call or something?
Find those methods in your scripts, add that line to both.

Original thread: https://forums.rpgmakerweb.com/threads/end-of-battle-edit-script.15201/