Enemy Chase and Battle Processing?

Hello,

So for my game, an enemy is supposed to chase after the player character and a battle is initiated. As far as I know, I have all that down. My question is how do you inflict a "stun" status to the enemy should you defeat it in battle, but after a couple of seconds, resume chasing the player character and just keeps looping until you exit the area.

Hopefully that all makes sense.
Make it another event page, add a self-switch to that page after the battle processing.


The new page should be set to parallel process and contain only two commands: a wait for the time you want, and another control self-switch turning the switch OFF to get back to the original page
Make it another event page, add a self-switch to that page after the battle processing.

The new page should be set to parallel process and contain only two commands: a wait for the time you want, and another control self-switch turning the switch OFF to get back to the original page
Thank you! Really helped.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-chase-and-battle-processing.42949/