Events that autorun every time Player enters the Map?

I want to create events that autorun a single time every time the player a map.
Turning off/on switches every time a player leaves/enters the map could be very hectic.

I was wondering If there was a Plugin to solve my problem.
erase event
it will come back in next visit
create an autorun event and on the bottom "erase event"

erase event make it normal when an auto run have activate the event on that map.
and re-run again when you go inside that map again.

the only issue here is that you enter a house or cave and enter that map again,
it will run again.
Thanks. I figured it out 😛 I am a little dumb.
Would that work if you save the game and load it will the event come or will it be gone?
Would that work if you save the game and load it will the event come or will it be gone?
the current map is stored inside the savefile, so it would still be gone on loading a savefile - until you leave the map and come back to it, because then it would be reloaded from the default map, causing the autorun to work again.
@Andar I was wondering what was a simple way to do a Start on Layout Code. This is it Thank You for the quick reply.

Original thread: https://forums.rpgmakerweb.com/threads/events-that-autorun-every-time-player-enters-the-map.119719/