|
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: 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?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: 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
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. |
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: 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?
|
|
|
|
David256 Beginner
Joined: 07 Nov 2006 Posts: 22
|
Posted: Sat Jan 20, 2007 7:12 pm |
It works! Hehe a little annoying, but I'm just happy it works now.
Thank you! |
|
|
|
|
|