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


Joined: 16 Sep 2011
Posts: 2

PostPosted: Wed Sep 21, 2011 8:22 pm   

Syntax for nesting messeges in a trigger
 
Hi Folks, I was wondering if a) it's possible to nest messages in a trigger, b) how to do it if it is possible, and c) if I have to create a separate trigger, do I have to repeat the class at the end? I'll use one of Zugg's examples from his advanced triggers tutorial to explain things. Say we have this:

Code:
#TRIGGER {({@group}) *{hits|misses|massacres|scratches}} {assist %1} autojoin

Adding the various attack messages is easy enough but I also need to cover backstabbing like so:

tries to backstab
places {a|some|the}

The first message should fit in like the other messages but the second one...what's the syntax to add this?

Code:
#TRIGGER {({@group}) *{hits|misses|massacres|scratches|tries to backstab|places({a|some|the})|TERMINATES}} {assist %1} autojoin

or would it be

Code:
#TRIGGER {({@group}) *{hits|misses|massacres|scratches|tries to backstab|places {a|some|the}|TERMINATES}} {assist %1} autojoin

Thx,
K
Reply with quote
Einder
Novice


Joined: 03 Jan 2008
Posts: 48

PostPosted: Fri Oct 07, 2011 6:28 pm   
 
What your looking for Karac should look more like this

Code:
#TRIGGER {@tank *{injure|slashes|pounds|blasts|pierces|whips|crushes|misses|tickles|hits|bruises|injures|blindly,|frenzied,|massacres|OBLITERATES|LIQUIFIES|PULVERIZES|ANNIHILATES|TERMINATES|ATOMIZES|dodges|parries}} {assist @tank}
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