I was wondering if it was possible to make an event reappear after death.

I have all enemies set as events so when they touch you a battle begins.
once you win, the event gets ereased ''not with the erease event command'' with a switch.
so i thought what if when you die all enemy events reappear.
is this possible?
sorry for the bad writing, i'm very tired and woke up like 2 hours ago.
touch event to battle:

page 1:
when win:
selfswitch A is ON

when lose:
wha happens here?

when escape (when possible
something here

page 2: (condition selfswitch A is ON)
picture can be empty or a dead enemy)

wait 360 frames (or any amount you want:
selfswitch A = OFF

this revert back to page 1 again to be run.
You just need to check the Can Lose box in your Battle Processing command, and in the When Lose, turn all those switches off. If you're using self switches rather than switches, use the Outer Self Switch plugin. And to save having to copy/paste all the commands to every event, just set up a common event to actually turn all the switches back off again, and in the individual enemy events, do a Common Event command to call it.

Original thread: https://forums.rpgmakerweb.com/threads/i-was-wondering-if-it-was-possible-to-make-an-event-reappear-after-death.125207/