This plugin allows Common Events to be played at the end of the battle depending on the results.
Look at the code or download the Plugin:
Battle End Events
This plugin allows Common Events to be played at the end of the battle
depending on the results.
The following Plugin Commands can be used throughout your game to change the
Common Events called at the end of the battle. These can even be used in
troop events to dynamically change what Common Event will be played at the
end of the battle.
These change the win, lose, escape, and abort Common Events respectively.