Reset Switches/Variables After Battle?

I have some combat skills that manipulate various switches and variables, and I'd like to be able to reset them to their default values after each battle. I can think of some convoluted ways of doing this with events (parallel process event on every map, troop event on every troop), but it seems like the ideal solution would be to insert a script call to the end of battle processing that would reset these values. Trouble is, I'm not confident in my ability to find the right place to insert those calls. So, questions?

1. Am I right that this is the simplest solution?

2. If so, where exactly would I need to insert these script calls?

3. Or should I be trying to do this via plug-in and so posting over in that part of the forums?

Thanks! 
Actually it depends on what your variables/switches do when not in battle. If they are only used in battle then you could reset them in the troop event tab (you can copy paste tabs) with an event that triggers in turn 0. Turn 0 before skill selection, when the text "Mob X appears" is shown. This is a simple solution that doesn't need a parallel process.

Another way could be: turn on a switch during battle turn 0, set up an event in every map (copy paste it) with 2 different event pages. The 1st one does just nothing and is a simple button activation blank page, the 2nd page is a parallel process that triggers when the switch is on and resets all variables and switches you use in battle (including the switch that triggers it).
The easiest way would be to use a common event to reset battle switches.

Make a common event to reset all those switches you want to reset, make it a parallel process and condition it to a switch "after battle".

The last command of the common event has to switch off the "after battle" switch, so that the event only runs once.

Then, either in a default troop (if you have such a plugin) or in every troop you make one event conditioned to run on turn 0 that only switches ON "after battle"

Finished, that's all
I wrote a plugin to turn switches on at the end of battle, depending on the outcome.  You could use that, along with a common event.  In the plugin, use the same switch for all 4 battle outcomes, and set your common event to parallel process, conditioned by that switch.  In there, reset all your switches, and turn the switch off that you've used in the plugin as well.

http://forums.rpgmakerweb.com/index.php?/topic/49437-battle-result-switches/
Thanks, Shaz, using your plugin now and it works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/reset-switches-variables-after-battle.50302/