|
patryn Apprentice
Joined: 26 Sep 2001 Posts: 124
|
Posted: Sun Feb 03, 2002 6:52 am
fleeing script |
im fiddling around with the idea of writing a fleeing script for my mud, and it seems pretty easy to do for the standard directions, but i run into problems when i want a %roomlink to an 'other' direction
eg. Exits: n,s,climb pole
#forall %roomexit() {#show %roomlink( ,%i)}
that code will give me the roomnumbers for the first two links but not the last one
is there any way to input an 'other' link into the %roomlink() command so that it returns a roomnumber?
thanks
That which does not kill us, makes us stronger. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Feb 03, 2002 7:49 am |
I'm not a mapper, but perhaps you could use the %roomportal() function for this.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Feb 03, 2002 1:17 pm |
Yeah, do what LightBulb suggested. Use %roomlink for normal exits and %roomportal for "other" exits. %roomportal returns a stringlist of three items. First item is the name of the "other" exits, then the room number the exit links to and the zone number of that room.
Kjata |
|
|
|
patryn Apprentice
Joined: 26 Sep 2001 Posts: 124
|
Posted: Mon Feb 04, 2002 2:15 am |
thanks very muchly :)
That which does not kill us, makes us stronger. |
|
|
|
|
|