Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
fred@kuzel.ca
Beginner


Joined: 25 Nov 2003
Posts: 15
Location: United Kingdom

PostPosted: 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
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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}}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
fred@kuzel.ca
Beginner


Joined: 25 Nov 2003
Posts: 15
Location: United Kingdom

PostPosted: Sun Aug 22, 2004 8:55 am   
 
Merci. Smile
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net