Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Sun Apr 01, 2007 9:16 pm   

Find rooms with unlinked exits
 
I'm tryin to figure a way to find/filter rooms that have an exit that is not linked to anything. Anyone know how to do this? looks like in the "find room" comand on the mapper "edit" menu one can enter other criteria, but i have no idea what to enter here to see unlinked exits. Any help would be good.
Jed
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sun Apr 01, 2007 10:23 pm   
 
I saw someone with a script that did this. I think it was Vijilante, but I can't find the post now.

EDIT: I've found it! It's here.

Don't be daunted by the size of the script. The pertinent part is the very first alias, Uscan. You'll notice how it goes through every room checking every exit in that room to see if %roomlink=-2 for that room. If you read the documentation for %roomlink, you'll see that -2 is an unlinked link. This'll be very slow, but it'll do the job. It could probably be optimised with local variables to improve the speed too.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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