Can I make an NPC's move route follow a region?

I could have sworn I saw this some time ago before I knew I needed it, and now I can't find what I thought I saw.

Basically, I have the character engage in a foot race around a track in the park. It's not complicated, just a square. The race itself triggers a switch, that requires the player to stay on the track, which is painted with a region. If the player steps off, they lose by default. Once they hit the finish line (which is its own region) the race switch toggles off. The NPC's move route is just designated as being the track for the purposes of that event, then if the player wins, it changes the NPC's self switch via the common event.

If the player wins, I want the NPC to meet them at the finish line, but they could potentially be anywhere along their racing move route when that happens. What I want is a way to make them hustle toward player, but remain on the track. It's not the end of the world if they cut through the park (which is what path finding does, since it's the most direct route), but I'd just prefer they stay on the track, and if possible, continue moving counterclockwise around it. Is there a script or a plugin anyone can direct me toward, please?
I don't get it, if you want the npc to move along the track to the finish line to the player, just have the npc finish their track move route (even after the player reached the goal)?
I don't get it, if you want the npc to move along the track to the finish line to the player, just have the npc finish their track move route (even after the player reached the goal)?
Because that messes up the tracking of the race. If the NPC completes their route on the race, it results in a loss. That triggers as a script call at the very end of the move route for the race. If the player reaches the finish line/region square, it flips the parallel-running race switch off and flips the NPC to another self switch page in order to advance toward the player and give the prize.
not really, not with your restrictions.
there are region restriction plugins that can keep events from passing a specific region, but that is for all events and it would mean you need two borders on both sides of the track, and nothing in that would force going into a direction.

besides - how are you moving the NPC event for that to even be a consideration???
because on a fixed move route that is not needed, and with a random move the event will never reach its target.
Because that messes up the tracking of the race. If the NPC completes their route on the race, it results in a loss. That triggers as a script call at the very end of the move route for the race. If the player reaches the finish line/region square, it flips the parallel-running race switch off and flips the NPC to another self switch page in order to advance toward the player and give the prize.

Ok, but can't you make the loss script just check if the player has already reached the finish line?

Anyway, VisuStella Event's and Move Core has <Move Only Regions: x,x,x> for events...not sure how that works with 'move towards player' or pathfinding however.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-an-npcs-move-route-follow-a-region.168830/