|
solem Beginner
Joined: 16 Mar 2004 Posts: 20
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: 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... |
|
_________________
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: 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 |
|
_________________
|
|
|
|
|
|