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


Joined: 16 Mar 2004
Posts: 20

PostPosted: Wed Jan 05, 2005 7:57 pm   

%roomexit problem with %roomportal.
 
Hello all,
If I am in a room, with a standard exit north and a roomportal exits called test and Enter Trapdoor, and I run the following command:
#FORALL %roomexit {#Say %i -> room: %roomlink( ,%i)}

I get the following output:
n -> room: 2144
Enter Trapdoor -> room:
test -> room:

Can anyone tell me how to get the vnums for the the roomportal exits to show.

Thank you in advance.
Solem of AardWolf
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Jan 06, 2005 10:39 am   
 
Use the %roomportal function instead of %roomlink.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Fri Jan 07, 2005 3:07 pm   
 
tried yer suggestion Vij and got this for
#FORALL %roomexit {#Say %i -> room: %roomportal( ,%i)}
d -> room:
e -> room:
s -> room:

I could be wrong but i think Solem was asking for one that would show both exits and portals...
_________________
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jan 08, 2005 7:36 am   
 
#FORALL %roomexit {#SAY %i -> %if(%len("%i")=1,%roomlink(,%i),%roomportal(,%i))}

They are mutually exclusive. Knowing when one doesn't work just tells when to use the other. The test used here isn't 100%. All normal exits will be 1 character, but all nonstandard exits will not necessarily be more than 1 character. The likelyhood of a signle character nonstandard exit is small enough though that I would rather use that test then the other possibilties.

I apologize for the brievety of my first reply. I was still working on my first cup of coffee and getting over a lil flu bug. My day doesn't really start right until my third pint of coffee is in me.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Wed Jan 12, 2005 3:36 pm   
 
*cough* actually, i just tried
#FORALL %roomexit {#SAY %i -> %if(%len("%i")=1,%roomlink(,%i),%roomportal(,%i))}
and it didnt do anything at all
_________________
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