I am trying to move my elevator between floors, which I have defined as regions (Underground, First Floor, Second Floor).
Here’s the code:
Carry out pressing button:
now the current level of the Left Elevator is the number understood;
say “You press button [the number understood]. The lift whirs into action and moves to the correct level.”; [if [the number understood] is 0] now player is in Basement; [otherwise [if [the number undertood] is 2]] now player is in Mezzanine; [otherwise [if [the number understood] is 1]] now player is in Hallway.
Howsomeever: I push a button, and the readout is always:
Basement
You can go west, east, northwest or northeast.
Mezzanine
You can go west, east, northwest or northeast.
Hallway
You can go south, west, east, northwest or northeast.
All the above in response to the one command: Press (whichever number I select).