(Eventing)Make Immune to Battles for x Seconds

I'm not a huge fan of random encounters, so my enemies are set up as NPC's that move towards the characters and start a battle on event touch. The problem with that is, if you have 3 NPC's gathered (Maybe you tried getting away, or you escaped the battle) it will automatically set in the next fight (or same one if you ran from the fight)

So what I am trying to do is make the party immune to event touch events or from battle processing for x amount of seconds after the player wins the battle or escapes giving the player some time to get away from the Enemy NPCS before a new battle is started.

I am sure there is a way to do this with conditional branches and timers, but I am just now noticing the issue and already have over 100 Enemy NPC's I would have to edit the events for so I figured I would ask to see if there was an easier way to go about it.
The easiest way is probably to give each event an additional page and condition that to a switch. If that page doesn't contain a battleprocessing, then there will be no battles as long as that switch is turned on.

Original thread: https://forums.rpgmakerweb.com/threads/eventing-make-immune-to-battles-for-x-seconds.54288/