Events going AROUND player?

Hi all!
So I'm wondering if there is a way to make it so that events and other characters go AROUND the player when you create a destination route.
For example; I have a dog npc whom heads for the exit(a game of tag) after you talk to it. The issue is that if I create a movement route and someone approaches from the wrong side, the dog will be stuck in place instead of continuing with the story. What I want to know is if there is a way to set a movement route for npc's(and characters too if possible) that makes it so that they will go around anything they can't pass through, to get to their destination.
I see that there is a way to just move THROUGH impassable but for logic reasons, I'm wondering if there's a way to just go around them.
Try this
this.moveStraight(this.findDirectionTo(x, y));

Replace x and y with your destination coordinates.
I dont know a Solution for that, but how about a Workaround.

Conditional Branch Player Facing down, left, right, up.
You could create a Moveroute for each case.
Try this
this.moveStraight(this.findDirectionTo(x, y));

Replace x and y with your destination coordinates.
I THINK I got this to work. I put this in the script option in the movement route tab, right?
I'm trying to get them to go to tile 22, 7 so the formula would be something like...

this.moveStraight(this.findDirectionTo(22, 7));?
I THINK I got this to work. I put this in the script option in the movement route tab, right?
I'm trying to get them to go to tile 22, 7 so the formula would be something like...

this.moveStraight(this.findDirectionTo(22, 7));?
Yes, it goes in the movement route of the event under the script option.

Let me know if it's not enough, I have a pile of pathfinding scripts and plugins.
Yes, it goes in the movement route of the event under the script option.

Let me know if it's not enough, I have a pile of pathfinding scripts and plugins.
Ok for the most part this worked. It causes them to go around the player and head in the general direction. The only thing is that it will move them slightly off course to where I intended them to go. But this isn't really a problem since whenever i do this it will usually be a character walking off screen or through a wide exit. Thanks!
I dont know a Solution for that, but how about a Workaround.

Conditional Branch Player Facing down, left, right, up.
You could create a Moveroute for each case.
I'll keep this in mind too! This could help if I need an alternative. Thank you!
You could also use Yanfly' moveroutecore (plugin)
I know i downloaded all of Yanfly's plugins, but i'm not sure if i seen that one or not.
Edit: Found the plugin. Going to test this out.
You could also use Yanfly' moveroutecore (plugin)
Wonderful! This did the trick! Thanks so much!
Happy to help.

Original thread: https://forums.rpgmakerweb.com/threads/events-going-around-player.158501/