How to make a moving NPC move to set location after interaction?

Hey everyone, I'm back with a potentially "stupid" question!

How would one make a moving NPC move to a certain location after speaking to them? Since the NPC is question is moving, I cannot just set a move route e.g. move 5 spaces left, since this would cause the NPC to end up at different locations depending on where you talked to them from.

Is there a way of doing this that I have simply overlooked? I can only seem to find a way to set a move route, rather than set a destination square.

Many thanks for any help,

Thaesha 🙂
There are a lot of pathfinding scripts out there that may be of some use to you.
You need a path finding script for that.

I use this one: http://forums.rpgmakerweb.com/index.php?/topic/3064-pathfinding/
Thank you very much for the quick replies! I've never used scripts but I will look into them now.

Thae 🙂
If you don't want to use scripts, you can use control variable commands to detect the event's current position and calculate the numbers of steps needed based on that.


However this can get very complicated depending on the map where the event wanders, with a complex map you'll need to use a pathfinding script.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-moving-npc-move-to-set-location-after-interaction.35577/