|
SpongeBath Newbie
Joined: 14 Dec 2002 Posts: 8 Location: United Kingdom
|
Posted: Sat Dec 14, 2002 11:20 am
Multiple Line Trigger Help |
I have recently come back to muds and started using Zmud again but can't for the life of me get a triger to work.
Basically I have a mob clearing trigger that kills, and auto loots a mob. But for neatness i want it to get the corpse and junk it if it is empty.
The only way i could see of triggering this safely is to file off of a line.
H:1421/1432 M:434/526 0 <none> 229477 --> corpse (carried)
Nothing
How can i capture starting at corpse?
Thanks in advance. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Dec 14, 2002 12:12 pm |
Use a pattern of:
corpse ~(carried~)$Nothing
Kjata |
|
|
|
SpongeBath Newbie
Joined: 14 Dec 2002 Posts: 8 Location: United Kingdom
|
Posted: Sat Dec 14, 2002 1:55 pm |
Thats lovely, works great.
How does it work? is the $ giving a carriage return or something? |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Dec 14, 2002 2:21 pm |
The $ tells zMUD to match the end of a line. If there is text after the $, it means that the text is to be found in the next line.
Kjata |
|
|
|
SpongeBath Newbie
Joined: 14 Dec 2002 Posts: 8 Location: United Kingdom
|
Posted: Sat Dec 14, 2002 2:31 pm |
That makes sense.
Thanks for that.
Another quick question, how do you use multiple wildcards.
say
abc tells you 'gimme a big ph4t strength please'
cba tells you 'strength mate'
i want both of them or anything containing to word "strength" in a tell to trigger.
I tried using *'s but they dont seem to be able to do multiple words. |
|
|
|
SpongeBath Newbie
Joined: 14 Dec 2002 Posts: 8 Location: United Kingdom
|
Posted: Sat Dec 14, 2002 2:58 pm |
ignore previous i managed to get it to work, was my fault with () and {} getting confused.
|
|
|
|
|
|