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
Lego
Newbie


Joined: 28 Sep 2003
Posts: 4
Location: USA

PostPosted: Sat May 15, 2004 10:52 pm   

Help with the triggers/mapper in ZMUD
 
I'm running ZMUD 7.04 (on W2K) and am having problems configuring the mapper for a certain area. This area has descriptions that look like this:

--------------------------------

This is what i would like the room title to be
Mini-Map [] Here is where the actual description of the room
|+pppppppp [] will be. It might mention what you see to the
|ppppppppp [] north, which is a nice meadow. To the east it
|ppvvvpppp [] might mention the tall grasses. To the south is
|pvpppvvppp [] another description and finally it could say that
=vppppppvpp [] there is scrub brush to the west.
|pppp*ppvpp []
|ppppppppvv []
pppppppppp [] Type legend to interpret the mini-map.
__|pppppppp []
^p|ppppppp/ []
^+|+ppppp/p []
Obvious exits: north, southeast, northeast, west, northwest,
east, south and southwest.

---------------------------------------

Because of the characters in the maps on the left, I thought I would make a mapping class and add a trigger to remove everything to the left of (and including) "[]". I was kind of able to do this with a #sub inside a trigger. However, because of the blank lines that were left, it seems to confuse the automapper configurator. I think if I could find a trigger that would do the following, i would be ok:
1) remove [] and everything to the left.
2) if the remaining line is blank, #GAG it.
3) if the remaining line is "Type legend to interpret the mini-map.", #GAG it
4) Add a blank line after the title line of the description
5) Add a blank line before the "Obvious Exits:" line.

I can do bits and pieces of this separately, but when i try to do them all, I get garbled results. Can someone help me? Perhaps I don't even need the triggers, and could do this in the Mapper configuration, but I've been unsuccessful in that, too (largely because of subtle inconsistancies between rooms... Like sometimes the "Obvious Exits" will have a blank line above it, and sometimes it wont)

Thanks!

Lego
Reply with quote
Lego
Newbie


Joined: 28 Sep 2003
Posts: 4
Location: USA

PostPosted: Sun May 16, 2004 5:57 pm   
 
more information:

To filter out the left side of the description, i triggered on:

(*) [] (*)

and then

#sub "%2"

This worked. I then tried to combine the removal of the one string that always appeared with:

#if (%2 <> "Type legend to interpret the mini-map.") {#sub "%2"} {#sub ""}

(I also tried #GAG in place of the second sub). This gives me garbled results (some lines missing that i don't expect, the legend line not missing, and unusual spacing)

I think if i could figure out why this doesn't work, i might be able to figure out how to do the rest of the things i want to do... Any help is greatly appreciated!

Lego
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