Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Fri Sep 20, 2002 9:25 pm |
Yes, in the Room Properties window, under the Other tab, there is a box labeled "Room Flags". Put something like WATER_SWIM in there. If you use other flags, you might want to set it up as a string list.
You were unclear as to whether you had to swim to enter a water room or you had to swim to leave a water room.
If it's the latter, use this trigger:
#ONINPUT {^({@directions})$} {#IF %ismember("WATER_SWIM",%roomflags(%roomlink(%roomnum,%1))) {swim %1} {%1}}
It peeks into the next room and looks for the flag, then sends the appropriate command.
If you must swim to leave a water room, use:
#ONINPUT {^({@directions})$} {#IF %ismember("WATER_SWIM",%roomflags(%roomnum)) {swim %1} {%1}}
In either cast the @directions variable is filled with all possible directions:
#VAR directions {n|e|w|s|u|d|ne|nw|se|sw|north|south|east|west|up|down|northwest|northeast|southeast|southwest}
Troubadour
(Win 98, Pentium III, 550 MHz) |
|