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


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Wed May 16, 2007 11:44 pm   

Mapping Question
 
I need a hand setting up my mapper. The room exits I'm interested are seen in between (). The other exits between [] are swimming paths, and I don't care about.

I've inclosed examples of what I see when I'm mapping.

The Old Ford(w and e)

The Old Ford(w and e) [s and n]


Thanks for all the help.
_________________
Yama
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed May 16, 2007 11:56 pm   
 
How are exits formatted when there are more than two? This example assumes that they'll be "w, s and e".

Regex so that the trigger is as specific as possible but not sure if this is right or not:
Code:
([a-zA-Z ]+)\(([neswand ,]+)\)( \[[newsand ,]+\])?

Script:
#tag name %1;#tag exit %replace(%replace(%2,"and",",")," ")


Last edited by Fang Xianfu on Thu May 17, 2007 1:24 am; edited 1 time in total
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu May 17, 2007 1:18 am   
 
(ne, s, n, nw, w and e) for example

Or they could be (ne, tower, n, d, well and e)
_________________
Yama
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu May 17, 2007 1:28 am   
 
I code tagged the regex above - the forums were eating some of the slashes.

You can probably safely change the [newsand ,] to simply [a-z ,] or just [\w ,] to get it to fire, but those special exits will need more consideration if you want them to be automapped. If you're just going to do them manually you could use %roomlink (though I'm not sure how that handles other com directions) or the mapping character once it's in.

If you want the trigger to do it, you could probably search the list that's created for any non-standard items, but I wouldn't recommend it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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