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


Joined: 14 Dec 2002
Posts: 8
Location: United Kingdom

PostPosted: 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.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Dec 14, 2002 12:12 pm   
 
Use a pattern of:
corpse ~(carried~)$Nothing

Kjata
Reply with quote
SpongeBath
Newbie


Joined: 14 Dec 2002
Posts: 8
Location: United Kingdom

PostPosted: Sat Dec 14, 2002 1:55 pm   
 
Thats lovely, works great.

How does it work? is the $ giving a carriage return or something?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
SpongeBath
Newbie


Joined: 14 Dec 2002
Posts: 8
Location: United Kingdom

PostPosted: 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.
Reply with quote
SpongeBath
Newbie


Joined: 14 Dec 2002
Posts: 8
Location: United Kingdom

PostPosted: Sat Dec 14, 2002 2:58 pm   
 
ignore previous i managed to get it to work, was my fault with () and {} getting confused.
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