Control one event that is sitting on top of another event(without a script)

here is a tough one to crack.

You walk into a room (the inside of a building). you see a couple of boxes. You find a hidden switch. when you toggle the switch "on" ...a box moves, to reveal hidden stairs leading to the basement.

you go down to the basement (another map). You come back up the stairs. you push "off" on the same switch, and the box slides back over the stairs (hiding them).

This  open/close event can be done over and over...whether going back and forth from the basement, or leaving and re-entering the building.

How can I accomplish this with events only, and no plugins? 
1. I would have 3 events (an autorun event, the button, the box), 1 switch ("Are the Stairs Hidden?"), and 2 variables (Player X, Player Y). 

2. In your autorun event set your switch to on. (The stairs are currently hidden)
And remember to Erase Event.

3. In the button event make a conditional branch (else ticked) that says:
-- IF the switch is on then use a move route on the box event. Then turn the switch off. (The stairs are no longer hidden)
-- ELSE if the switch is off then use a move route on the box event (to move it back into place). Then turn the switch on. (The stairs are currently hidden). 


4. In the box event set it to parallel. Set your Player X variable to *Game Data: Map X of Player. Do the same except for Y. 
Then set a conditional branch that says: 
IF Player X = (X coord of the stairs) and * another conditional branch inside of the first one *
-- IF Player Y = (Y coord of the stairs) then transfer the player.  (If the players xy match with the xy of the stairs then transfer the player)


I think you might have to make sure your box is on a character sheet, too.
This will probably only work as long as the box is put back in its original spot before the player leaves the map, but you could watch the box event's XY as well to determine if your switch is on or off for the autorun event. 
 
I got it to work perfectly. I used 3 events.

SETUP PRIOR TO RUNNING EVENT: box to be moved is event no. 1 (using the graphic of a box from the "B" tab of the tileset). This box is located 2 steps to the right of the stairs.

Event no.2- set at entrance into the room (out of sight of the boxes, which is important). event is set to below player/player touch. This event uses "set event location" to move the box two spaces to the left (also using through on and through off for smooth movement). This puts the box directly over the stairs...hiding them. The important thing is that this happens before the player walks far enough into the room to see it happening. So, what the player sees is just the box, and not the stairs underneath.

Event no. 3- just a simple conditional event saying what happens when you select "on" and "off". Of course, "on" moves the box 2 steps right (revealing stairs and providing room to access them).....and "off" moves the box two steps left

(hiding the steps)

The sticking point I had, was that each time you leave a map and enter it again...the box resets its location to "two steps to the right of the stairs". However, This is overcome the "SETUP PRIOR TO RUNNING THE EVENT" shown above.

There is a difference between re-entering the room from the door and doing so from the basement below. This setup works in both situations. When you re-enter from the door, the box moves (out of your sight) left to cover the stairs.

When you reenter from the basement...the box resets itself to its original position...which is just how things looked when you went down the stairs. So, when you leave the basement, and re-enter the room, you simply walk over to Event no. 2 and flip the switch to "off".....done.

Thanks for your input "meowchelle". I could probably have used variables and a parallel event...but I was wanting to make the event as simple as possible, and fully re-workable. This way I made sure that when the door event was tripped...that the action happening was out of the player's line of sight.

Original thread: https://forums.rpgmakerweb.com/threads/control-one-event-that-is-sitting-on-top-of-another-event-without-a-script.53904/