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
David256
Beginner


Joined: 07 Nov 2006
Posts: 22

PostPosted: Sat Jan 20, 2007 1:13 pm   

Room ID in a direction
 
If I have a room ID number and an exit direction, how can I find the ID of the room that is pointed to by that exit?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 20, 2007 2:29 pm   
 
Rclick on the room and look on the exits tab, they're all listed there.

If you mean as part of a script, I'm not sure. One of the %room functions will probably do it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
David256
Beginner


Joined: 07 Nov 2006
Posts: 22

PostPosted: Sat Jan 20, 2007 3:34 pm   
 
Oh sorry, yep I meant part of a script.

I finally spotted %roomlink was what I wanted. Thanks, you made me take a another look Smile

Edit: I can't get roomlink working with "other" directions (like "push wall" and such). It always returns blank.
I've tried enclosing the command in "" and {}, but it doesn't work, I don't know what else to try.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Sat Jan 20, 2007 5:13 pm   
 
For non-normal links you need to use %roomportal(,"push wall") , or probably in this case %item(%roomportal(,"push wall"),2) -- which only works for non-normal links, annoying, yes?
Reply with quote
David256
Beginner


Joined: 07 Nov 2006
Posts: 22

PostPosted: Sat Jan 20, 2007 7:12 pm   
 
It works! Hehe a little annoying, but I'm just happy it works now.

Thank you! Very Happy
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