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
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: Wed Nov 14, 2001 2:29 am   

Automapper for Immortals
 
Hey hey,

I have a problem. I need to get the automapper working for my staff, but it's having difficulty configuring.

My MUD's output is:



#945 : A Small Clearing
[Exits: #44500 north #944 east #946 west]
The forest clears out, as if the trees purposely avoid this area for some

strange reason. A pair of mighty oaks mark somewhat of a doorway into a
valley to the north and a faint trail leads west toward the sound of a
rushing river, and to the east a small trail leads into a dense forest.
-----
north used to be 947. this is on long-term hold
now links to 44500


As you can see, the vnum's are all over the place, plus the line after the ----- are immortal-only notes which shouldn't appear in the description.

I've tried the following trigger:


Pattern: ^#(%d) : (%*)$~[Exits: (%*)~]$$(%*)
Code: #TAG vnum,name,exit,desc {%1} {%2} {%3} {%4}

But it doesn't help at all.

Any suggestions?
Thanks,
-- Rainchild
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Nov 14, 2001 11:45 am   
 
Did you try re-configuring the automapper after you created the trigger with the #TAG?

Also, I think it is possible that zMUD gets confused with all the vnums in the exits and thus will not want to process them.

Kjata
Reply with quote
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: Wed Nov 14, 2001 12:24 pm   
 
I've tried reconfiguring at least 100 times today, literally :)

Tried all sorts of different triggers. I was getting close, #SUB'd out all the vnums. But I couldn't get #TAG to fire on the #SUB'd lines... there any way to do that?

-- Rainchild
Reply with quote
Castaway
GURU


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

PostPosted: Wed Nov 14, 2001 2:44 pm   
 
How about you just Trigg on everything after the '----' line and use #NOMAP?

Lady C.
Reply with quote
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: Wed Nov 14, 2001 2:54 pm   
 
The ----'s not very reliable, it only shows up if a room has typo's/rbug's attached to it :
It's quite a nightmare :)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Nov 14, 2001 5:41 pm   
 
Instead of using #SUb try getting the exits on the fly as you assign them with the #TAG command. Like this:
#TRIGGER {^#(%d) : (%*)$~[Exits: (%*)~]$$(%*)} {#VAR exits "";#LOOP %numwords(%3) {#IF (!(%i2)) {#VAR exits %concat(@exits, %word(%3, %i), " ")}};#TAG vnum,name,exit,desc {%1} {%2} {%trim(@exits)} {%4}}

Kjata
Reply with quote
Rainchild
Wizard


Joined: 10 Oct 2000
Posts: 1551
Location: Australia

PostPosted: Thu Nov 15, 2001 9:43 am   
 
*sigh* You would expect that to work, considering that if you #ECHO the stuff the trigger finds, it's exactly the correct information :
I don't know why it's being so difficult.

#ECHO shows ->>>

46795 Below a Staircase east south up You stand at the foot of a gargantuan staircase which spirals up into the

(not sure why the curly braces aren't there, but it's the right data)

-- Rainchild
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Nov 15, 2001 11:47 am   
 
Well, then, now I don't know what else to say. In theory, it should work, but I really don't know why it doesn't.

Kjata
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