Event walking to specific Tile

Hey,

       I'm just starting out with RPG Maker and I have a NPC 'Approaching' the MC, when they meet they have a conversation and then the NPC walks away to the edge of the screen and disappears.

I currently have it so that when the conversation ends he 'moves right' repeatedly until he can't anymore and then disappears.

All well and good, as long the encounter takes place roughly in the area that the event originates but as the NPC will follow the MC until they meet. The path to the edge of the screen could be blocked by something and therefore he will disappear prematurely.

Is there a way to get the NPC to move to a specific square regardless of his starting position?

P.s. I would prefer to keep the 'Approach' style as it should seem as though he is seaching for the MC but if there is a way to achieve my goal in another way then I will consider it.

Thanks.
Unless you want to do lots of conditional branches to allow your NPC to move around obstacles, you'd have to use a pathfinding script.

Original thread: https://forums.rpgmakerweb.com/threads/event-walking-to-specific-tile.19452/