[RMMZ] 1) How do I remove an event after it has triggered? [SOLVED] 2) Is there a way to make an NPC run to you without manual insert or repeats?

Hello,

I'm very new to RPG Maker MZ (literally not even a day into it) and I've been watching a few tutorials online. I've come across two issues that I can't seem to solve and figured this would be the best place to ask.

1) How do I remove an event after it has triggered?
In this scenario, I have created an on touch trigger event (single tile) that acts as a 'cutscene' where a girl runs up, says her dialogue, then the player character heads north to the graveyard. After the event in the graveyard, the player comes back down to the first area again. When the player walks over the trigger tile again, the cutscene plays again. How do I get it to only play that one time? Added Self-Switch to end of event and then made a second event page to turn self switch on.

2) Is there a way to make an NPC run to you without manual insert or repeats?


In the same scene, I have the NPC (Molly) running up to the player to initiate the dialogue. However, I have been setting it manually (Move Up, Move Up, Move Left, Etc). I want to see if there is a way to make her run to the PC without me having to draw every step. It works when I select the option to Repeat Movements but that just causes an infinite loop that will never trigger the dialogue.

1683314546797.png

The box on the left under the barrel is the trigger that causes Molly to spawn and approach the PC to talk.

1683314777683.png


This conversation takes place, telling the player to head north to find Frederick.

1683314572026.png


This is the event in the barrel square that causes Molly to appear and start the dialogue. Trying to find a way to get her to run without having to type out the entire Set Movement Route event (2).

1683314854477.png


Second part of the event, that ends with the fadeout BGM and causes Molly to walk aimlessly like a normal NPC now that she's in the scene. I have an issue here where Molly only move one space at Random. If I set that to repeat, it will endlessly loop and I will be unable to play. If I close the switch here, the NPC disappears. So I added the switch closing on the event square at the top of the scene during the fade transition into the next area.

1683314899410.png


With the switch turned off, I have now returned to this area with Frederick. Molly is no longer here. However, when the party heads south from the graveyard and into the event square from earlier, Molly reappears from the bottom to start the event conversation over again, even though the switch is turned off. Do I need to add the end of the switch to the barrel tile? And if I do that, how do I get Molly to not disappear instantly when the scene is over? (1)


This is my first post on this site, so I hope I provided enough information for assistance. D: Merci!
2) Is there a way to make an NPC run to you without manual insert or repeats?
That's how movement routes work. Each command moves the event one space.

You could use more complex programming to avoid a long movement route, like putting it inside of a loop and checking the event's coordinates to see whether to break out of the loop and go to the next command...but that's even more complicated.

You can also get plugins that provide you with script commands to make move routes shorter, like specifying a coordinate to move to; but you shouldn't be messing with plugins until you are comfortable being able to use just the plain editor proficiently.

Second part of the event, that ends with the fadeout BGM and causes Molly to walk aimlessly like a normal NPC now that she's in the scene.
You should instead turn on a switch at the bottom of that page (or increment a variable that represents your story progress), then make a second event page on Molly with random movement in the Autonomous Movement section on the left of the event window.

when the party heads south from the graveyard and into the event square from earlier, Molly reappears from the bottom to start the event conversation over again, even though the switch is turned off.
At this point, I've lost track of where you are in your screenshots. But it sounds like you didn't use a self switch to disable the event that triggers the cutscene.
2) Is there a way to make an NPC run to you without manual insert or repeats?
an alternative is to use autonomous momvemnt: approach
that however will require you to use multiple event pages to coordinate everything as that option is only available based on activb e event page.

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-1-how-do-i-remove-an-event-after-it-has-triggered-solved-2-is-there-a-way-to-make-an-npc-run-to-you-without-manual-insert-or-repeats.157259/