|
nimrod_hy Newbie
Joined: 09 Feb 2003 Posts: 5 Location: China
|
Posted: 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! |
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
nimrod_hy Newbie
Joined: 09 Feb 2003 Posts: 5 Location: China
|
Posted: 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! |
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|