@Crabs - yeah, region events wont work for him cause what he is doing is an event that should capture the press of a button, region events is basically a plugin that allows you to activate a CE once you step on the region from the outside. BTW thanks for the code XD
So you should be having something like this:
Conditional Branch: if Input.isTriggered(ok)
Change Variables: Player X = Player's Map X
Change Variables: Player Y = Player's Map Y
Script Call: for (i = 1; i < $gameMap._events.length; i++){
$gameVariables.setValue(Event X Variable ID, $gameMap._events
._x);
$gameVariables.setValue(Event Y Variable ID, $gameMap._events._y);
//
Put your if Player is facing ifs here
//
Script call: } //Do not forget this
End
Wait some frame //Add a few frame of wait just so this doesn't run every update, to save some processing power
Take note though that you might want to add some more check for the events to be included coz right now this will check ALL events in your map.