Whats the script for random movement event moving to specific tile?

I looked online for scripts but they all do not work,

I have this npc that has random auto movement, when a timer runs out i want that npc to stop moving randomly and instead move to a specific tile. I cant do the normal set movement route to a specific tile because the npc will be at a random place when the timer reaches 0
that is two different things: one to change the autonomous movement, the other to move to a specific point.

the first is simply a new event page, usually triggered by a switch condition.

for the second you'll need a pathfinding plugin, because that option is not available by default. But there are already two or three pathfinding plugins that give that option as script command.

Original thread: https://forums.rpgmakerweb.com/threads/whats-the-script-for-random-movement-event-moving-to-specific-tile.142951/