Does Erase Event Literally Remove the Event From the Map?

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA
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!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
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.
 

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,353
Reaction score
7,666
First Language
German
Primarily Uses
RMMV
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.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
564
Reaction score
275
First Language
German
Primarily Uses
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.
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
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 :)
 

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA
cool. thank you for the information, guys!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top