Make event disappear from another event

Hello,

I'm new to RPG Maker MV, but I've been watching tutorials and reading forum posts to help me. So far I've been doing good but I've run into a problem and I can't find a solution that works. Keep in mind I don't have a full understanding of the program just yet but I am learning. So let me explain my problem. I have five events. four of them are npc and the last one is an event that runs when the player steps on it. The fifth even controls the other events actions. I have the player talk to one npc before a fight occurs and the npcs walk off. No problem and I found a solution to making them disappear once off screen, however that simply removes their graphic, I still run into them. How can I turn off these four NPC's(events) so they no longer appear. Here is the script for the event that I have.

Hopefully I've shown you what you need to see, also ignore the dialog, it's just a placeholder.
Screenshot (19).png
Screenshot (20).png
Screenshot (21).png
Screenshot (22).png
On each of the NPCs have another page, no commands, no graphics, but conditioned by a switch.
In your controlling event, turn that switch ON when you have finished.
This makes the new page the active one, and as it has nothing on it, effectively it is not there, as far as the player is concerned.

Just a note for the future. If you use Alt+PrtSc for your screenshots, it will take a shot of the active window (the event) only, not your whole desktop. This makes it much easier to read the events.
On each of the NPCs have another page, no commands, no graphics, but conditioned by a switch.
In your controlling event, turn that switch ON when you have finished.
This makes the new page the active one, and as it has nothing on it, effectively it is not there, as far as the player is concerned.

Just a note for the future. If you use Alt+PrtSc for your screenshots, it will take a shot of the active window (the event) only, not your whole desktop. This makes it much easier to read the events.

Thank you very much Kes. It worked perfectly. Seems simple now but I couldn't get it to work. Really appreciate it. As for the screen shots, I have a program called Evolve installed so when it saved the screenshots of the active window, it saved them to a different folder and I didn't see them. Anyway, thank you again, really appreciate it.
If this query is fully resolved for you, please Report your opening post and ask for the thread to be closed. Mods may not see an individual post, but will see a Report.
Thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/make-event-disappear-from-another-event.95493/