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
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Mon Feb 04, 2002 2:15 am   
 
thanks very muchly :)

That which does not kill us, makes us stronger.
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