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. 🙂
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.