Looking for a "which side of the event are you on" script

So I have a situation where if you walk up beside the event, you should move down and be in front of the event. But there is no way in MV to determine: "Which side of the event are you on?" So what I am loioking for is a script command I can do in a conditional statement to say:

If you are on left, right, top, down of the event do X.
If this is an event you interact with to trigger it, why not conditional branch based on what direction the player is facing?
Or you could set up events next to this event to set movement route of the player to get back in front of this event! 👋
if the event is triggered by the player, simply use player facing in conditional branch to determine where the player stands (if he faces right, then he stands left of the event.

In all other cases, use four control variable commands to get the XY for both event and player and compare the numbers for relative positions.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-which-side-of-the-event-are-you-on-script.81332/