How to make event commands start working only after we left the map?

Hello everyone, I've been trying to google this question in multiple ways, but it's just to complex to find it, so I created this thread to ask it.

Here's where I am now. I'm doing a quest, there's a choice to get into a fight, and after that fight, the npc is standing in a different place than normal, and it's alright, I want to leave him there, but after I leave the map and come back he stands in his default position again, and I would like to either leave him where he stands or maybe send him somewhere else after I leave the map and come back.

I know that we could put variables to every individual teleport, but I have lots of unique maps I can go to, and it would be a lot of work, so it would be great if there's an easier way to do it.

It's probably so easy to do, but I can't figure it out haha.
You mean like this? http://forums.rpgmakerweb.com/index.php?/topic/17799-persistent-map-events/
The way I've done this in my game is I have a variable that stores the progress on that quest. Once you do that fight, increase the variable by one (let's say for example it was variable 101 and you set it to 1).

Then, go back to your events on the map, and set it so that the old location shows nothing when variable 101 is >= 1, and the new location shows the event when variable 101 is >= 1.

Replace 101 with the variable you chose, and 1 with whatever your progress counter really is.
It was just what I was looking for, now that npc will be standing there just like I want, even when I return to the map later.

The way I've done this in my game is I have a variable that stores the progress on that quest. Once you do that fight, increase the variable by one (let's say for example it was variable 101 and you set it to 1).

Then, go back to your events on the map, and set it so that the old location shows nothing when variable 101 is >= 1, and the new location shows the event when variable 101 is >= 1.

Replace 101 with the variable you chose, and 1 with whatever your progress counter really is.
Also a great method, thanks!
I also have a Remember Event Position script that just keeps track of where the event is on the map and puts them back there when you return, without actually storing the event in your save file. Might be worth considering if "position" is the only extra thing you want it to remember and you find your save files are becoming too big.
I also have a Remember Event Position script that just keeps track of where the event is on the map and puts them back there when you return, without actually storing the event in your save file. Might be worth considering if "position" is the only extra thing you want it to remember and you find your save files are becoming too big.
Previous answer provided me with everything I need, but thanks anyway.  🙂

Just for the record, I'm using bgillisp's method. Very easy to do, without the need for custom scripts.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-event-commands-start-working-only-after-we-left-the-map.35938/