End of battle Events

So I could use a hand here.

Currently I'm using a common event along with Yanfly's Base Troop Events to make one of my character transform at the start of battle. This transformation makes him stronger and changes his portrait(plot reasons). Only problem is I can't figure out a way to revert the portrait change after battle. Now I can get away with this by using events(in the case of story fights) but I have no idea how to make him change back for say random encounters. 

I've even tried just making this a skill but I can't figure out how to make something fire off at the END of a combat. Included is the event to make the actor transform(And if I did it right, untransform if he dies). 

Advice? 

henshin.png
Make a switch "After Battle Event" and control it ON at the start of every battle by troop event.


Make a common event set to parallel and conditioned on that switch.


In that common event, place all commands that you want to happen after battle aftermath but before resuming game on the map.


The LAST command in that common event has to be control switch "After Battle Event" OFF to prevent the CE from looping.


Because parallel events can't be processed during battlescreen, it will be processed only after returning to map.
That seems to work Andar. Thank you very much for that. 

Original thread: https://forums.rpgmakerweb.com/threads/end-of-battle-events.40997/