How do I run a plotscript after a battle?
From OHRRPGCE-Wiki
To run a script after each battle, you need to write an After battle script. You must set it in the General Map Data menu for each map.
When a script is set as an After Battle script, the first argument is set to true if you win the battle, or false if you run away or lose.