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


Joined: 09 Feb 2003
Posts: 5
Location: China

PostPosted: Sun Feb 09, 2003 1:13 pm   

Multi Line Message Catch
 
I meet a question when I play a interesting Mud.
When I type ID. It always show me the things I keep on my body, such as the follow message:
Golden Armor
Blade
Sword
Staff
Silver

These message are all in seperate line. How can I catch all the things I get? Because I only want to keep some of them, such as sword and silver. The others are to be sold or droped.
Any one can help me? Thanks a lot!
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sun Feb 09, 2003 4:56 pm   
 
#TRIGGER InvTrig {ID} {#VAR Inv "";#TEMP {^$} {#STATE InvTrig 0}}
#COND {} {#ADDITEM Inv %line} {LoopLines|Param=99}

This is pretty much straight out of the support library entry for advanced triggers|Resetting Triggers it should do what you want as long as the list is terminated by a blank line

--------

moon.icebound.net:9000
Reply with quote
nimrod_hy
Newbie


Joined: 09 Feb 2003
Posts: 5
Location: China

PostPosted: Mon Feb 10, 2003 11:49 am   
 
Sorry that I have forgotten to mention that I use the Zmud5.5. The edition seems not support these triggers.
Would you tell me the trigger in 5.5 edition? However, thanks for your quickly quote.
And I meet another question. When I build a map, the tool supply 11 directions as:s/n/e/w/ne/nw/sw/se/u/d/other. In some scenario, speed walk is more useful than map. However, in speedwalk mold, the default direction is s/n/e/w/h/j/k/l... and I will defining other derections as q:eastup/a:eastdown/...
So, if I use speed walk, it can not find the right location in map. How can I use the two mode smothly in different scenario? Thanks!
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Feb 10, 2003 3:59 pm   
 
in zmud 5.5, this should work ok:

#tr {ID} {#t+ getinv}
#tr {^(*)$} {#additem inv %1} "getinv"
#tr {^$} {#t- getinv} "getinv}

--------

moon.icebound.net:9000
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Feb 10, 2003 4:30 pm   
 
Directions like eastup and eastdown would require the use of zMapper together with the latest version of zMUD.

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