|
Irer Beginner
Joined: 08 Feb 2007 Posts: 12
|
Posted: 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? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
Irer Beginner
Joined: 08 Feb 2007 Posts: 12
|
Posted: 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?
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
|
|