Direction based Transfer

I don't know if there is a script for this or if I can do this through eventing, but I am looking for a way to make it so the character transfers to a specific spot depending on which directing they touch the transfer event.

For example, I want there to be a town with a dock to the south and land to the north. If the character enters the town from the dock the character transfers to the south part of town, and when the character enters from the land part they will transfer to the north part of the town.
eventing is enough for this

make the event check the player facing with conditional branches - one branch for each result will give you the direction from which the player has triggered the event, and then use a different transfer command in each conditional branch
eventing is enough for this

make the event check the player facing with conditional branches - one branch for each result will give you the direction from which the player has triggered the event, and then use a different transfer command in each conditional branch
Awesome thanks!

Original thread: https://forums.rpgmakerweb.com/threads/direction-based-transfer.122174/