Random Question

by Vesar

Back to Mechanic's Corner.

Vesar2005-10-11 01:37:30
Can you pick up a pattern on the PREVIOUS line?

Looking at picking up warrior messages...

Can I trigger "struck squarely in the nose, which bleeds profusely." to check for a "you" in the preceeding line?
Goyel2005-10-11 01:55:26
try withinlines with -1 param?

Really, no idea.
Unknown2005-10-11 02:08:43
Try to use %line2 predefined variable (the line before the last line received) and test it with %match or %regex.
Vesar2005-10-11 02:26:23
QUOTE(Kashim @ Oct 10 2005, 09:08 PM)
Try to use %line2 predefined variable (the line before the last line received) and test it with %match or %regex.
203313



It worked, but with %line3. Thanks


CODE

#TRIGGER {crushed and breaks, causing} {
 #if (%match( %line3, "you")) {
   afflict brokennose
   deepafflict head 2
   }
 }


I really like this method of matching.. it seems smooth to me.
celahir2005-10-11 11:36:59
^*you*$*(affliction line)*$

That should work