This plugin allows you to turn on switches when a battle is won, lost, escaped or aborted, which you can then use to trigger common events or map events. This makes it possible to trigger actions based on the results of random encounters, similar to what's possible when calling battles from map events.
How to use
Add to your plugins folder (file name should be BattleResultSwitches.js).
For each outcome you wish to monitor, enter the id of a switch to be turned on when that result occurs. Remember to name your switch so you don't accidentally use it for another purpose.