|
fred@kuzel.ca Beginner
Joined: 25 Nov 2003 Posts: 15 Location: United Kingdom
|
Posted: Fri Aug 20, 2004 11:20 pm
What is the room num on the other end? |
I am in a room with 1 exit: east
How do I obtain the room number to the east using the mapper?
I had this and seemed to have lost it somewhere.
Code: |
#FORALL %roomexit() {
#VARIABLE ExitLeadsTo = ????????????
#ECHO @ExitLeadsTo
} |
Uziel |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Aug 21, 2004 4:42 am |
#say %roomlink(, direction) //Don't forget the comma
#FORALL %roomexit {#Say %roomlink( ,%i)} //loop through all exits from room showing connecting room
in script following example in your post in string list Variable
ExitLeadsTo=""
#forall %roomexit() {#forall %roomlink(,%i) {#Variable ExitLeadsTo {%additem(%j,@exitleadsto)}}}
in script following example in your post in data record variable
#forall %roomexit() {#forall %roomlink(,%i) {#var exitleadsto.{%i} %j}} |
|
|
|
fred@kuzel.ca Beginner
Joined: 25 Nov 2003 Posts: 15 Location: United Kingdom
|
Posted: Sun Aug 22, 2004 8:55 am |
Merci.
|
|
|
|
|
|