NPC chasing NPC

Hi, I want NPC1 to chase NPC2. So far I have their routes set so NPC1 follows the same route as NPC2 (going around in a circle). However, when the player talks to one of the NPCs, it messes things up since it makes the NPC you're talking to stop moving. I often end up with NPC2 chasing NPC1 instead of running away from it. I hope that makes sense. Is there a way I can fix this? Thank you!
You can use Yanfly's stop map movement plugin, to stop NPCs from moving on their own during an event.
You could take the movement out of their route and put it into a parallel map event that controls both other events via move route and has a Wait command.

Put the move routes inside a Conditional Branch of a switch being OFF.

When you talk to either event, turn the switch ON before showing the text boxes, then back OFF at the bottom.
Is it for RPG MAKER MZ? I know that yanfly has a plugin that stops the map, I don't know if it exists for mz as well.
Thank you for your replies. I'm very new to this. How can I find Yanfly's stop map movement plugin? Will it work with MZ?
Oh, right, you are asking for MZ!
I'm pretty sure the free plugins from Visustella do the exact same thing as Yanfly's.
VisuStella Events and Movement Core has a plugin command to enable/disable events from moving. You could put that at the beginning and end of your conversations.

I don't immediately see that there's an automatic option, but you could check in the plugin parameters.
You could take the movement out of their route and put it into a parallel map event that controls both other events via move route and has a Wait command.

Put the move routes inside a Conditional Branch of a switch being OFF.

When you talk to either event, turn the switch ON before showing the text boxes, then back OFF at the bottom.

Thank you, that sorted my problem!
How do I find any plug ins?
...Google?

Original thread: https://forums.rpgmakerweb.com/threads/npc-chasing-npc.160783/