How to check if there is an Event on a certain tile?

Hello!
So I have everything for my idea except for this little thingy mentioned in the title.

Most of the maps are going to consist from 3 lines of tiles: 2'nd is for walking, 1'st and 3'rd are for events. And I want doors to be on both lines. When doors on the first line can be shown normally, I want doors on the third line to change their opacity whenever player looks at them. I'm not so good at explaining, so there is a picture:
1650534459032.png

Since this is a thing I'm planning to use a lot, I thought of a shortcut and this is what I came up with: parallel Common Event states player's X, Y and Direction. If player looks down, this CE runs another one, that uses player's coordinates and states new ones that are just one tile down. It checks if there is any events and if there is, it turns that event it to the right.
If player looks down, this CE runs another one, that uses player's coordinates and states new ones that are just one tile down. It checks if there is any events and if there is, it turns that event it to the right.
JavaScript:
var direction = $gamePlayer.direction();
if (direction === 2){
  var x1 = $gamePlayer.x, y1 = $gamePlayer.y;
  var x2 = $gameMap.roundXWithDirection(x1, direction);
  var y2 = $gameMap.roundYWithDirection(y1, direction);
  $gameMap.eventsXy(x2, y2).forEach(function(event) {
    event._direction=6;
  })
}
Spoiler: Common Event Screenshot
1650579816837.png

If the player is facing 'down' check all events in the direction of the player then set the direction of the event(s) to face 'right'.

That help?
or use event command "get location info"
it has an option for event ID, if that returns a number then the event with that ID is on the coordinates. If there is no event it returns zero
or use event command "get location info"
it has an option for event ID, if that returns a number then the event with that ID is on the coordinates. If there is no event it returns zero
yep as mentioned by @Andar you can also do that like this:
1650583370532.png


Although I'm not entirely sure of a way to to utilize the returned Event ID other than a script call.

@Andar is there a good way to use the returned Event ID variable to perform actions to the desired event without using script? I'm just curious for myself now
Thanks for the help! Really appreciate it!

I actually figured that Event ID's might come in handy and this thread was originally named "How to state Event's ID to a variable", but I lost my train of thought... 😅

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-there-is-an-event-on-a-certain-tile.146961/