Using Movement Route to change event image permanently

Hi all!

I have a bunch of events strewn about a map which, when interacted with, remove the images of a bunch of other events.

I think I was trying to streamline things by not having a million additional switches, so for each interactable event, I used Movement Route to change the images of the target events to "none".

Only now did I thoroughly test this, only to find that these changes aren't persistent. So when I leave the map and return, those events have their images back.

I can totally go in and change things up to standard switches, which I know would work, but boy would I love to avoid all that work if possible. Might anyone know why changing an image via movement route isn't persistent on map reload? And maybe also have a miraculous and quick solution? 😀

Thanks!
selfswitches are the way to go, than call inside the event or all.

using a scriptcall to call a range of SS to disable if the event is equal
going up.

another way is to use an copy event, there was one with a notetag that all
notetag that share the name to switch to page 2 which disable all of them.

or normal switch to go to a new page which is empty, all event that share the
same switch.

if its only in the current map, than it might be a bit differently, otherwise, you
look something more dynamically, but I think either SS or global switch is better.
selfswitches are the way to go, than call inside the event or all.

using a scriptcall to call a range of SS to disable if the event is equal
going up.

another way is to use an copy event, there was one with a notetag that all
notetag that share the name to switch to page 2 which disable all of them.

or normal switch to go to a new page which is empty, all event that share the
same switch.

if its only in the current map, than it might be a bit differently, otherwise, you
look something more dynamically, but I think either SS or global switch is better.

Yeah, I think there won't be any shortcut, and I should just change everything to normal switches and blank event pages.

I'm just curious I guess though -- why would using movement route to change an event's image not be permanent? Just how the movement route function was coded I guess?
Might anyone know why changing an image via movement route isn't persistent on map reload?
In short, move route states are not saved when the map changes - this includes any changes caused by a move route. You probably wouldn't want them to do so either: they already take up quite a bit of space on larger maps, your save files would start getting rather large if you started saving them for every map you went through.
there might be a way, if you use a cpy event , than use something like:

if: selfswitch A = ON
//do nothing here
else
your move route here
end

if you have copy event, is does nothing if the switch is ON.
reverse to be OFF and than move route, else nothing.

a normal switch is ideal in this situaten though.
this might work though, or change image only if switch is ON and your good.
why would using movement route to change an event's image not be permanent
It isn't only the move routes - EVERYTHING stored in the mapfile is deleted on leaving the map and reloaded on re-entering it.
That is why events go back to their original position, why erased events are back and so on.

By default only the switches are stored outside the mapfile, and due to this only switches can cause permanent changes to maps.

That is also the reason why there are scripts and plugins to remember the event position for those cases when you do not want them to go back to the original position.

And you either have to use switches with multiple pages or request a plugin that rewrites sprite handling and store sprite references outside the mapfile to get what you want.
Thanks all for the feedback. I'm glad to understand better how it all works now.

I'm switching over to regular switches and will be better informed going forward!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/using-movement-route-to-change-event-image-permanently.156843/