elevators
ramtha
20 Mar 2006, 18:56What 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.
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
21 Mar 2006, 08:15set 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
21 Mar 2006, 12:16Put this:
into the BEFOREturn script in the global properties.
Then put this command in:
That should work as a simple "go to prvious room" code.
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.