How can I talk to a moving NPC?

I'm not sure if this is the right topic but I'm wondering if I am able to have an NPC on a repeating walking path that I specifically designated to run parallel also be activated with the action command to have a dialog box open any time during its parallel path.
you can, you dont need the event to run paralel for it to follow the move setting to placed, have it set to be activated on the accept command and set the conversation 
Use Action Button trigger, and the event commands should be just what you want to happen when you interact with the NPC.


Select Autonomous Movement > Custom to enter your move route, instead of the Set Move Route command.
you can, you dont need the event to run paralel for it to follow the move setting to placed, have it set to be activated on the accept command and set the conversation 



I under stand what you're saying. The problem I'm having is I have the npc walking from one place to a door and then  activated a switch so it will appear he is going through the door, and then after a wait time another switch will activate so that he will walk back out and head back to his original location which will turn both switches to off and restart the loop,  Is there a way to do that without having his movement be specifically designated in the original script box? Because then it would be no issue at all. but I don't know how to have the switches activate after his movent cycle is finished if I use the autonomous movement. 
Don't use switches.  In the move route:

Code:
walk to door
Change Graphic (none)
Wait X frames/seconds
Change Graphic (NPC)
walk back to original location
Wait X frames/seconds
actually this is easy..... just have the event activate when touching the and event thats placed on the door, have the switch turn on which turns on a second page which has a timer that after the time is done it re appears


though this might also require a plug in


nvm it seems shaz answered this while i was typing it up

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-talk-to-a-moving-npc.55249/