How to make NPC walk to a specific tile in the map

Hello,

I want to make one NPC character walk into a specific tile in the map (door/stairs). Is there any specific command similar to the "approach" player that I can use or would i need to create specific block of code to check where the npc is positioned move a tile right or left /up or down depending on where he and the exit is, until he reaches the objective?

Thanks in advance!
Is the NPC going to be in a random position?
Yes, it will. Otherwise I could have used the "move to" step by step till it reaches the exit but I want the NPC to move after a counter ends.
Unfortunately they don't appear to have an easy "go to event" movement route. From what I can see, at least. You could do as you suggested and make condition branches and check for the event's location using variables.
You can use my Smart Pathfinding plugin for this.
I've never used plugins before. Would you kindly share your plugin please?
Shaz's smart pathfinding: https://forums.rpgmakerweb.com/index.php?threads/smart-pathfinding.46761/
I've never used plugins before. Would you kindly share your plugin please?
both instructions on how to use plugins and the plugins themselves are available in the javascript/plugin section of this forum.

edit: ninja'd

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-npc-walk-to-a-specific-tile-in-the-map.122611/