How do I get an npc event to push the player out of the way?

I'm having an issue where I have an event npc standing in the middle of a room, and when you talk to him he walks to the right down a hallway. However, when the player talks to him on the right, he becomes stuck and cannot move and you have to restart the game over again and talk to him from a different side. Is there a way I can make him push the player out of the way but only if said player is to his right?

I've tried having the player move around him before he moves but it just looks very awkward since it has to account for each position the player could be standing in. I also tried changing him to "through on" in the set movement path section as well as setting the event at a higher priority to the player but all I've gotten was the npc phasing right through the player which is obviously not the effect I'm going for.
Conditional Branch: Script: $game_player.x > $game_map.events[@event_id].x
do stuff


Else


do other stuff


Branch End

where the "stuff" that you do if the player.x > event.x (ie - player is on the right) would either be moving the player out of the way and then moving the event, or making the event walk around the player. And the "other stuff" that you do is moving the event when the player is not on the right.
If it's only for that specific situation, simply check for player position and move the player 1 tile down (facing up) or 1 tile up (facing down) before moving the NPC. It's the easiest way and any generic solution you might come up with would end up doing the same thing.
I usually just do it as:

Conditional branch: If Event X is facing right

 - Put here the move route it would take when the player is on the right. You can simply add player's move here too, to get them to step out of the way.

Else

 - Put here the regular route for any other direction.
Conditional Branch: Script: $game_player.x > $game_map.events[@event_id].x do stuffElse do other stuffBranch Endwhere the "stuff" that you do if the player.x > event.x (ie - player is on the right) would either be moving the player out of the way and then moving the event, or making the event walk around the player. And the "other stuff" that you do is moving the event when the player is not on the right.
 
I usually just do it as:

Conditional branch: If Event X is facing right

 - Put here the move route it would take when the player is on the right. You can simply add player's move here too, to get them to step out of the way.

Else

 - Put here the regular route for any other direction.
Shaz, I love your ease with scripting language. So sensible.

Matseb, I was checking Ace for this command. Hey I did not realize that you can check Event X (any event) in Ace now. Cool! (In VX you could only check player or "this event.")

event facing.png
Thank you all so much for responding! I was able to fix the problem, so my little game is finally done!
Gratz,Matazeu!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-an-npc-event-to-push-the-player-out-of-the-way.39163/