Set route depending on event ID

Hey guys!
I'm using Pokemon Essentials with RPG Maker XP, and I'm thinking about an event where Oak catches the player before they go into tall grass. That's got me thinking: since on the the right side, there is a wall blocking the player, how can I set a movement route depending on the event the player stepped on?

PS. The event is extended with size(2,1) so that it can cover the road.
1) Pokemon Essential are illegal due to containing ripped resources, and as such they will not be supported here on this forum.

2) for those parts of the questions that are independent of PE, you'll need a pathfinding script to get the functions for that, and then its use completely depends on the pathfinding script you're using as that is not default.

Original thread: https://forums.rpgmakerweb.com/threads/set-route-depending-on-event-id.148240/