Does Erase Event Literally Remove the Event From the Map?

Does Erase Event Literally Remove the Event From the Map? If I were to use the command "event erase" would it stop the game from processing that event until I left the map and returned? Thanks for your help!
It does. However...be careful because when you are playtesting, if you change the maps events at all, the erased event will return too. This is because the map reloads all events in playtest mode if it detects a change to the map.

Thankfully, this is not an issue for your players, just something to watch out for when using the play test button in the editor.
Awesome! Thank you for the input!

Edit: What do you mean change the maps events during playtesting? How would I do that? so I can avoid it.
What the erase event command does is erasing the event from the current RAM, which means it will not be processed again as long as the current map stays current.

However, it does not change the file data, which means the event will be reloaded from the mapfile if the map is reloaded.

That reload usually happens on entering a map, which means the event will return if you leave the map and then return to it.
What the erase event command does is erasing the event from the current RAM
That's not entirely true. More precisely the event behaves like an event with no graphic and an empty event page: you won't see it, but it is there and commands like "Get Location Info: Event ID" will consider the erased event in their result. You are even able to make that event visible again by changing its graphic through a moveroute (whyever you'd want to do that).

In general I agree that you can treat the event as "erased from memory" though.
To answer your question...you don't avoid it. Not unless you map never needs anything edited on it while testing it (very unlikely). All you can do is be aware of it, and know your real players will not see the same thing you do.

Believe me, it startled me today, as I was wondering why that man eating plant I had set to erase event was respawning in my game 🙂
cool. thank you for the information, guys!

Original thread: https://forums.rpgmakerweb.com/threads/does-erase-event-literally-remove-the-event-from-the-map.53201/