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
Irer
Beginner


Joined: 08 Feb 2007
Posts: 12

PostPosted: Mon Jul 30, 2007 7:10 am   

Mapper--unusual room name format
 
I'm currently trying a new mud, and I can't seem to get the mapper to behave with it. I usually get something like this:


You move south.
[Room name, in these brackets]
Description, all in one line.
Obvious exits: north.

I tried dealing with paragraph numbers, which didn't seem to work, although I'd prefer not to do this anyway, because sometimes things get caught between the lines of the direction and the room itself or something.
Even making a room by hand, with the LOOK button, doesn't register, possibly because of the brackets. I don't know much at all about using advanced configurations for mapping, and it's rather confusing. Anyone have ideas?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Jul 30, 2007 8:47 am   
 
You can use the #tag command to mark sections of text as different parts of the room. Perhaps something like this:

#trig {^~[(*)~]$} {#tag name}
#cond {^(*)$} {#tag desc} {within|param=1}
#cond {^Obvious exits:(*)} {#tag exit} {within|param=1}

If your room description changes, remove the first #cond and change the within parameter of the second one to 2 instead of 1. You might also find it worthwhile to delay #tagging until the last condition fires in case something else sets off the first two triggers. Just change the Value of the first two triggers to blank and the third to #tag name %t1;#tag desc %t2;#tag exit %t3. I haven't tested this, but it should work. Might need some tweaking.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Irer
Beginner


Joined: 08 Feb 2007
Posts: 12

PostPosted: Mon Jul 30, 2007 8:21 pm   
 
I'm not entirely sure what the mapper works on. Will that trigger only work when map editing is on, or need I turn it on and off as I move around?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Jul 30, 2007 8:28 pm   
 
All the #tag command does is tell the mapper which lines are parts of rooms, and which parts of the room they are. You need to reconfigure the mapper after setting up #tag triggers, and then you can happily leave them on all the time. Rooms will always be flagged as rooms to the mapper, so the mapper will be able to follow and create new rooms when it's sent them. What the mapper does with the rooms it sees depends on what mode it's in, of course.
_________________
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 » 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