MZ Event pops up

I'm trying to delete this event after the dialogue has been said. But every time my characters go in and out of Felinda, Frodon keeps coming back for some reason. Any idea how I can stop it?
I mean the third page has an event graphic. I wuold think it needs to be empty if you want the npc gone? You also turn "Salamander Quest" OFF, which means page 3 doesn't happen. The event still vanishes, since you erase it, but erasing only lasts until you leave the map.
1748037598760.png

Also, if you want the reason for why that isn't working. RMMZ reads event pages backwards. It reads 3 first and 2 second, then 1 last. So yeah... but use erase event where possible instead of just setting the graphic to nothing.

(But I suppose if you want that event to do something later definitely DON"T DO THAT!!!)
like @SGHarlekin and @TotalyNate said , the "erase event" It's temporary, I know a plugin that has an option to permanently delete events, but well, for now, when something similar happens to me, I would simply add another self switch and set it to ON at the end of page 2, and make it the conditional for page 3, it also frees you from using global switches if you are only going to use it for that event
The event is hardcoded in the map data so it will always be there. The only exception is if you use an event spawner to spawn in the event, then it can be permanently deleted since it's not part of the map data.
Yes, definitely agree with @Omar_RPG_1000 .
After the dialog, you should put a self switch to ON right before the Erase Event, and create a blank page with that self switch as a condition.
That way the event will disappear when you come back to that map.
The event is hardcoded in the map data so it will always be there. The only exception is if you use an event spawner to spawn in the event, then it can be permanently deleted since it's not part of the map data.
Yes, the event can't be removed from the map, but it can be completely simulated as if it had been deleted, I'm sure of it. You could make the game track which events have been deleted so that it doesn't load them, and that way the event would always be gone until a new game is started. I think that's how that mechanic would work. I swear I saw it in Sang Hendrix's action plugin, but well, I don't have that plugin, I'll probably make the plugin myself
There are save map data plugins like ones by Yanfly and NRP but I don't know what the point of "deleting" it permanently (it's still hardcoded on the map) would be when self switching to a blank page hides it anyway and is effectively the same thing.

If the event is spawned in you can delete it permanently (unspawn) since it's not part of the map data.
There are save map data plugins like ones by Yanfly and NRP but I don't know what the point of "deleting" it permanently (it's still hardcoded on the map) would be when self switching to a blank page hides it anyway and is effectively the same thing.

If the event is spawned in you can delete it permanently (unspawn) since it's not part of the map data.
You could be right, yeah you're so right that self-switching to a blank page is functionally enough for most cases but my idea aims to go a bit beyond that

Self switches still load the event into memory it's just hidden In large or complex games with hundreds or thousands of events, especially on mobile, having a system that skips loading the event entirely can help with performance and save management
Also, managing persistent world changes via self switches becomes messy fast. A plugin that stores truly "deleted" events externally could keep things cleaner and more scalable, especially for events that are meant to be permanently erased from the world (dead NPCs, destroyed buildings, etc)

It basically makes static events behave more like dynamic ones once removed, they never load again, unless a new game is started. It's not a necessity for all games, but could be very useful for large open-world or simulation-heavy projects.
IIRC save event plugins can have memory bloat problems since you're saving and loading a lot of extra data. They have their own downsides.

The performance impact of a non-moving event is effectively nil.
IIRC save event plugins can have memory bloat problems since you're saving and loading a lot of extra data. They have their own downsides.

The performance impact of a non-moving event is effectively nil.
you're right that some full event-saving plugins can cause bloat by storing entire event data structures. But what I'm proposing is way lighter: just keeping a simple list of event IDs marked as "deleted" and preventing them from being loaded at all in future visits to the map. It doesn't store full event data, just lightweight references, What I have to do is find a way to make the elimination of events as optimized as possible, so yes, it can have disadvantages ONLY if it is done wrong, I will do it right

The performance impact of a non-moving event is effectively nil.
certainly, but there is still
LOL. I'm telling you an event self switched to a blank page has effectively nil performance impact. I get the strong impression you don't know what you're doing.
LOL. I'm telling you an event self switched to a blank page has effectively nil performance impact. I get the strong impression you don't know what you're doing.
Maybe I've become too obsessed with the idea of this plugin, because right now I needed a new idea for a new plugin to make. But if I can achieve zero impact on performance, you can't tell me that it's not better to call a simple plugin command than to add another page and do a self switch
I get the strong impression you don't know what you're doing
If you say so
Thanks, guys, for the help!

Original thread: https://forums.rpgmakerweb.com/threads/event-pops-up.177869/