 |
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Mar 04, 2007 4:46 am |
One of the %room functions returns vnums of adjacent rooms, but I think you gotta know how to get to that room from the current room. If you don't, or you can't figure out how to translate the information Zscript allows you to access (some require vnums, some require room keys), you can delve into COM to make it all work.
I don't know enough about using COM to walk you through that, though. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: Sun Mar 04, 2007 9:36 am |
Well, I still don't find which %room function returns the vnums of adjacent rooms. Would you please tell me?
|
|
|
 |
Danlo Magician

Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sun Mar 04, 2007 9:44 am |
There isn't a function that returns vnums of adjacent rooms. However, you can create an alias to find out quite simply:
#forall %roomexit {#var CurRoom {%RoomVnum};#move %i;#echo %Roomvnum;#tele @CurRoom} |
|
|
 |
|
|