elevators

ramtha
What sort of command would i need to set to have the player be able to return to the room they were just in?
I mean, I have an elevator with a menu for each floor, but I want the player to be able to go west to return to the room they were just in instead of having to open the menu and go though the process of finding the floor they were on.

Elexxorine
set a string variable to the room they are in, in the after turn script, but only if they're not in the elevator. have the leave elevator command simply go to the room of the string variable...

paul_one
Put this:
set string <beforeroom; #quest.currentroom#>

into the BEFOREturn script in the global properties.

Then put this command in:
command <back> {
msg <You step back into #beforeroom#>
go <#beforeroom#>
}


That should work as a simple "go to prvious room" code.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums