Respawning On-Map Enemies After A While?

I've been trying to make my on-map enemies respawn after a certain amount of time for the last few days, but no success. Just to be clear, I'm not looking to have them respawn after the player leaves the map. If possible, I'd like it to where the player defeats the enemy, a minute or two passes then an animation plays and the enemy appears again. If anyone has any ideas on how to do this, it would be much appreciated.
Personally I just use erase event under the if win condition. They will then respawn if you leave the map and come back.
Personally I just use erase event under the if win condition. They will then respawn if you leave the map and come back.
Lol, sorry. I was updating the post as you replied
If you want a timer involved you'll need a plugin for that. I use Galv's Event Spawn Timers plugins that allow events to have their own personal timers that count down even if you're not on the same map. What I do is have the event activate a selfswitch after a battle and then the plugin will start that event's timer. When the timer runs out it flips the selfswitch to off and the event goes back to being a random encounter.
If you want a timer involved you'll need a plugin for that. I use Galv's Event Spawn Timers plugins that allow events to have their own personal timers that count down even if you're not on the same map. What I do is have the event activate a selfswitch after a battle and then the plugin will start that event's timer. When the timer runs out it flips the selfswitch to off and the event goes back to being a random encounter.
I'll see what I can do with it and post my results.
So I've successfully gotten it to respawn the enemy, but I'm having a hard time figuring out how to work in the animation I want to play before the enemy respawns.

https://ibb.co/mJSDq1Y
https://ibb.co/bJ2NcBy
So I've successfully gotten it to respawn the enemy, but I'm having a hard time figuring out how to work in the animation I want to play before the enemy respawns.

https://ibb.co/mJSDq1Y
https://ibb.co/bJ2NcBy

I think a quick turn around to that would be to make a third event page with its own selfswitch, make it parallel run, have the timer turn the third pages selfswitch on, and in that third page have it play the animation and turn off the selfswitches for the second and third page. You might need a 10-20 frame wait command between the animation playing and the switches turning off.
I think a quick turn around to that would be to make a third event page with its own selfswitch, make it parallel run, have the timer turn the third pages selfswitch on, and in that third page have it play the animation and turn off the selfswitches for the second and third page. You might need a 10-20 frame wait command between the animation playing and the switches turning off.
It works flawlessly. I've been banging my head on a wall and ripping my hair out at the same time trying to figure it out lol Thanks a ton.

Original thread: https://forums.rpgmakerweb.com/threads/respawning-on-map-enemies-after-a-while.105722/