Events not resetting upon map transfer

I'll try to be as clear as possible so bare with my examples please.
I have a map where there are 3 searchlights and when one touches you, it activates a battle then transfers you to the beginning of the map after said battle.
The light events themselves are a player touch event and there is a separate event for each light that sets their movement route. It starts on the bottom and moves 2 up then 2 down on repeat.(Shown in picture 2&3)

My problem is that when I exit the map and re-enter, the light event and movement event doesn't reset it's position and continues the 2 up 2 down movement route out of alignment meaning it hits a wall and stops.
as another example, if the light event was on "Through", it would continue it's route but out of alignment.


Am I missing something?
If I see this right it's simple. When you leave the map while self switch A is ON , then go back to said map, the event position will reset, but since self switch A is still on, it will try to move down since that's the active page, despite already being located at the bottom.

A way around this would be to use regular switches and turning them off inside your transfer map events when leaving the map.
If I see this right it's simple. When you leave the map while self switch A is ON , then go back to said map, the event position will reset, but since self switch A is still on, it will try to move down since that's the active page, despite already being located at the bottom.

A way around this would be to use regular switches and turning them off inside your transfer map events when leaving the map.

SGHerlekin's suggestion is incredible without plugins, but I'm going to come in here and say this is a rare instance when I would actually advocate you use a free plugin called Yanfly's Save Event Locations.


Thing is, the easiest solution definitely is to use a regular switch/variable, but for such a minuscule thing such as a light event needing to stay in a certain spot after it's activated, I kind of prefer when I get to not use a Switch, and just say "Hey, make sure this light stays here" using the <Save Event Location> notetag.

If I didn't have Save Event Locations from Yanfly, my previous puzzle game would've probably used like tons of more switches/variables, and cause clutter in my interface lol.

Just some food for thought incase you don't want to use Switches/Variables if you're like me, and trying to organize Switches/Variables in a certain way.

Less eventing, less switch use, it's free to use...yehhhh
SGHerlekin's suggestion is incredible without plugins, but I'm going to come in here and say this is a rare instance when I would actually advocate you use a free plugin called Yanfly's Save Event Locations.


Thing is, the easiest solution definitely is to use a regular switch/variable, but for such a minuscule thing such as a light event needing to stay in a certain spot after it's activated, I kind of prefer when I get to not use a Switch, and just say "Hey, make sure this light stays here" using the <Save Event Location> notetag.

If I didn't have Save Event Locations from Yanfly, my previous puzzle game would've probably used like tons of more switches/variables, and cause clutter in my interface lol.

Just some food for thought incase you don't want to use Switches/Variables if you're like me, and trying to organize Switches/Variables in a certain way.

Less eventing, less switch use, it's free to use...yehhhh
Yanfly's save event location never worked for me and OP's thread read like he wanted them to reset, which is why I haven't suggested it. But yeah, it can work like that too if you prefer the lights not resetting.
I think the event, as it is defined, is more complex than it needs to.

First of all, I don't understand why you need a switch in the first place. There's nothing wrong with having the light move up and down on the same page.

You might also want to consider setting the "Autonomous Movement" type to "Custom Route". That way, your event wouldn't need to be a parallel process, and instead could become an "Event Touch". This would allow you to write the light's behavior directly in its event (e.g. start a battle, then teleport the player to another map). As an added bonus, you no longer need a controlling event to check if the player is on the same coordinate as one of the lights, since the event already handles it for you.

And since the light is supposed to shine on top of the player, it'd make sense to set its priority to "Above Player".

Original thread: https://forums.rpgmakerweb.com/threads/events-not-resetting-upon-map-transfer.153899/