About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
liujc
Beginner


Joined: 02 Mar 2007
Posts: 23
Location: China, BeiJing

PostPosted: Sun Mar 04, 2007 4:34 am   

Does zmud have a fuction to give the adjacent rooms' vnums?
 
I have searched in the zmud help files and I didn't find the function.

For example: I have a room's vnum, and I want to know the adjacent rooms' vnums. Does zmud have a function to do this?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
liujc
Beginner


Joined: 02 Mar 2007
Posts: 23
Location: China, BeiJing

PostPosted: 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?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: 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}
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