Elevator issues

Ah, maybe you saved your game with Variable 0007 modified, which means that its base value is no longer 0. An easy fix for the situation is setting its value to 0 when you enter the Elevator map from the First Floor. That way you'll ensure that this Variable has the right value when you enter the elevator. You can also do that for the other two floors.
This may be the most confusing event ever XD. But I ran into yet another issue. I set it when entering the elevator from a certain floor, it recognizes the floor that you're on no matter how many times you exit and enter the elevator from that floor. The main problem now is that when you switch floors for ex:

Upon entering the elevator from Floor 1F, the elevator recognizes the floor, player replies "we're already on this floor" no matter how many times u enter and exit the elevator to press the switch for Floor 1F

When pressing the switch to go to Floor B1, the event runs. As above, the elevator recognizes the floor, player replies with same comment upon the same conditions of entering and exiting the elevator.

**Problem** Now when switching back to Floor F1, The elevator does not recognize the floor and has the player exit on the floor previous to what it has been switched to now
Now that's problematic. Does it actually do the animation of the elevator when you switch back to Floor F1 ? Could you Alt+PrtScr me the elevator & exit events, just to check if there aren't any mistakes ?


EDIT : It's currently 2:36 AM in my time zone and I'm getting pretty tired so offline I go for now, you'll have to wait a few hours for my next answer, sorry about that ^^'
This is the event animation upon entering the elevator for each floor. This image is from the Floor 1f
YOvvwZz.png


And this is how i have it set up for when the player exits the elevator. Each page is set up the same, but each page has a different transfer player event in it
319Lhnp.png
I'd show you how to do it, but my RPG Maker's in French, so instead I'ma tell you what's wrong.
The first thing I noticed is that you set Variable 0007 to 23 when entering the elevator instead of 0.

In my version, Map IDs are useless, you can't just mix the two alternatives you've been given in hopes that it works, no wonder it failed just then.
You might be mistaken between IDs. 'Map IDs' are indexes given by RPG Maker to maps in order to have a numeric 'tag' to refer to them.
What I called IDs, in my solution, is a number that you arbitrarily give to differentiate the three possible outcomes of the elevator map.
The three possible outcomes of the elevator map are : You exit to Floor F1, you exit to Floor B1 or you exit to Floor B2. That where my IDs, my arbitrary numbers come into play. If Variable 0007 contains the number 0, then the outcome will be to exit the elevator to Floor F1. If it's 1, then the outcome will be to exit to Floor B1. If it's 2, you'll exit to Floor B2. That's why we manipulate Variable 0007 in the switch event. We need it to have the right value for the outcome the player selects via the switch choice.

What I'm saying is, you should replace your arbitrary IDs by 0, 1 and 2 for now. I'll explain it when the elevator works, if you still don't get it.

Now, onto the exit event.
Here, you've also done a mix of what you've done and what I've suggested, but it doesn't work at all.

My suggestion for the elevator exit only uses 1 page and doesn't use any switches at all. Here's the precise layout of it, with 0 corresponding to F1, 1 corresponding to B1, 2 corresponding to B2 :

@>Play SE: 'Open3', 80, 100
@>Wait: 50 frame(s)
​
@>Conditional Branch: Variable [0007] == 0
@>Transfer Player:[Mine 1F]
@>
Else
@>Conditional Branch: Variable [0007] == 1
@>Transfer Player:[Mine B1]
@>
Else
@>Transfer Player:[Mine B2]
@>
Branch End
​
@>
Branch End
​
@>

If you combine that elevator exit event with the exact event that I've suggested, with arbitrary numbers 0, 1 and 2, and if you change Variable 0007 to 0 if entering from F1, 1 if entering from B1 and 2 if entering from B2, in the respective gate events then it should work correctly.

The main advantage of using a variable here is that you've actually saved your three elevator switches (that you can then use elsewhere) and you also saved yourself from writing a few unnecessary pages. That's the goal of optimization in programming languages : Use the fewest resources possible, with the fewest commands possible to do what is required. It looks better and runs smoother. Also it saved you 3 switches.
​
So on that 2nd part of the Else statement when exiting the elevator, when choosing floor B1 it sends me to B2 instead.

(Update)
So for the variable, I had to use the map ID numbers that were on the game I'm creating. I got the exits to work just as you posted and now the elevator switch is working properly.
That might have been because you've copied/modified the arbitrary IDs wrong on the switch event. Since Map IDs and arbitrary IDs are just numbers, there's no real difference between using all 23s instead of 0s, as long as you do it properly. It's just easier to do with smaller numbers that range from 0 to [number of options]-1.
Now that you've modified the numbers to be the same where they need to be, it works relative to the values you've chosen.
Anyway, glad I could help !

Original thread: https://forums.rpgmakerweb.com/threads/elevator-issues.97812/