Event comes back after a save...

For some reason when I save after an erase event happens and I reload the game, the event comes back...


What the heck..? How do I stop the event from returning every save?
Yes, that's how the 'Erase Event' command works. The event will also be there again when you leave the map and come back.


If you want to permamently stop the event from running/occuring you'll have to use selfswitches 🙂
This is actually pretty useful to know. But is this really intended? Saving should make a snapshot, so to speak, of the situation the player is currently in. That should include events that have been erased.
I can't tell for sure if MV handles things the same way, but in the previous makers the current map would reset when loading an outdated savestate (outdated = you saved the project at least once in the editor since the savestate was created).


By resetting the map, events would return to their original positions, erased events would reappear and parallel processes would be aborted.
I see what you mean, Liak, and while I kind of agree with the snapshot thing, I fear it's like Fen described.


A workaround could be, if this problem is limited to one map, and Minun wants the event to not appear when loading but reappear when reentering the map, to actually use selfswitches and reset them in the transfer events via script call


$gameSelfSwitches.setValue([$gameMap.mapId(), eventId, 'A/B/C/D'], false);
I wouldn't go that far. Erased events will only reload if you change the map in the editor and then load a save in test play mode, as then the program is told the map is outdated and needs to be reloaded. This will be a non-issue for your players as they won't be playing the game in test play mode anyways.


For that reason, I suggest just remembering that the erased events will work right once you play the game after it has been deployed. No need to get fancy with self switches and such.
If it doesn't affect actual players, it's fine. 🙂
@bgillisp Nope. I rely on erased events to reset treasures and enemy fights in my random dungeon runner. Currently, at least.


Erased events will always return when you leave and re-enter a map. I think they stay gone if you save in the same room the erased event was on. I still think "erase" might be the wrong term for this. Dismiss might be better.


If you think of erasing an event as telling it to go away without saving any information about it's current state, it might be easier to process. To compare with a chest event, one that gives 5g and erases the event, and one that gives 5g and changes a self switch...

  • Using Erase Event
  • Player opens chest
  • Player gains 5 gold
  • Event disappears with the only persisted change being +5 gold


  • Using Self Switch
  • Player opens chest
  • Player gains 5 gold
  • Event's self switch A enabled
  • Event remains with 2 persisted changes: event's self switch state, and +5 gold



I hope that helps make it clearer. It is also important to remember that if you erase an event after some self switches are set, erasing the event DOES NOT reset these self switches, so if the last self switch triggered a page that autoruns, it will autorun every time you enter the map.
If you look at the tooltip for erase event it says it temporarily removes the event, whenever someone leaves and returns to that map the event will rerun too.

Original thread: https://forums.rpgmakerweb.com/threads/event-comes-back-after-a-save.59091/