How to make bridges you can walk on and under?

Okay, so I saw this on facebook today, and I did buy these tiles earlier.

You see how there's a bridge over the gap, and stairs lead down to another level where you could potentially walk under that bridge? Of course, this screenshot has the area blocked off by some rocks, but is that possible without a plugin?

The only way I can thing of would be to have two events on the stairs. One at the bottom of the stairs and one at the top of the stairs.

In order to get it to work, any piece of the bridge that you should be able to walk under would instead need to be an event. By default, the priority of the events would be "Below characters" and you would walk across the bridge normally. There would also need to be ghost events to stop you from walking off the sides of the bridge.

Once you got to the bottom of the stairs, you would step on an event that triggered a switch (player touch trigger). While triggered, the ghost events would disable by going to a new blank page with priority set to "Below characters", and all of the bridge events would be changed by going to a new event page where the priority gets changed to "Above characters" and set to "Through" for good measure. It would also need to make ghost events on the ends of the bridges stop you from walking back up to the top layer.

In case the player goes back up the stairs, at the top of the stairs is a player touch event that disables that switch again.

The problem with this event trick is it might cause some substantial lag if there are too many events on one screen.

So is there a way around that? Maybe make the tiles passable below as long as you walk into them from the bottom or top? But then you would still be able to walk up and down on the bridge since it's two tiles wide, so only if you walk on it from another specific tile? I wish I could test it out right now but I'm stuck at work. Any thoughts on this?
There's an old post I made about a similar problem in VX Ace. Seeing as it's just variables and switches the same will apply to MV.

https://forums.rpgmakerweb.com/index.php?threads/going-under-a-bridge.26108/
Right, according to your little tutorial, ghost events wouldn't be needed?
No just the bridges. Sorry about that mess of an photo. If you want I can get into better detail here.
I'm impatient so I'm going to download and try it on my work computer. I'll get back to you with results. Thanks for your help!
You can use the OcRam Passages plugin to create bridges as well ss other 2.5 D effects, like cliff edges and the like.
Or you can check out this video tutorial:
If I would have to do that without plugins I would create bridge graphics with events where page 1 would be below characters and page 2 would be above characters (triggered by "lower floor level" switch). And also block sides with events where page 1 would be below characters and page 2 would be triggered By "lower floor level" switch.

But if you are interested in easier way to do it I have made plugin for this (allows for example events to move on the bridge while player is on lower floor). Also allows player to be under/above the bridge/cliffs (supports also autotiles). Check it out here: https://forums.rpgmakerweb.com/index.php?threads/ocram-passages-plugin.88047/

Spoiler: Example
Bridge event (Graphics) and blocking events.
bridge_event3.png

Spoiler: Bridge event(s)
bridge_event.png

Spoiler: Bridge side blocks
bridge_event2.png

Hope this helps.

Edit: It seems that Zarsla (and others) already answered (when I started to reply no answers was seen) 🙂
I can confirm that doing it like @Uzuki said does NOT work unless I create the ghost events as I mentioned earlier. I can still walk right off the bridge without creating the ghost events. I'll try a plugin. Seems like there is a generous amount of need for this anyway.
On a side note, I would not recommend the exact method shown in that video. It seems that he has done it by creating a large number of parallel processes, all without 'wait' commands. This increases the risk of lag enormously. If I were doing this, I would not use parallel processes at all. They are not needed when the page is activated by a switch.
Yeah I was curious why not to just have them be player touch? I got it to work fine with events, of course, the touch screen feasure doesn't work but I'll deal with it and eventually do what he said there.
It can also be simplified much further. There is no need for all that Get player X and Y. Simply put an event on each of the stairs, set below character and to Player touch which turns the switch OFF (so that you can walk on the bridge) and a similar event at the foot of each stairs which turns it ON.
Right, but the problem with that @Kes is it causes the touch screen controls to freeze the player when they step on those events.
Oh yes, touch screens, forgot about that. I wonder why that happens?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-bridges-you-can-walk-on-and-under.89352/