|
Gimli Beginner
Joined: 16 Oct 2005 Posts: 22 Location: Canada
|
Posted: Mon Jul 18, 2011 3:32 am
Capturing Multiple Lines |
I've been trying to set up a trigger to capture tells that can be multiple lines and having troubles.
Sample:
Code: |
Raven:> Katanah: Quantavious is swimmin' with the fishes.
Raven:> Chronos spanks Bunbun properly!
Raven:> SaRette cheers Onyxdragun enthusiastically.
Raven:> Onyxdragun: lol i was going to take my time leveling. but i miss
being part of Raven!
Raven:> Onyxdragun: thanks!
Raven:> SaRette grins mischievously.
Raven:> Sarette: hang on brb
|
I can't seem to make it capture the "being part of Raven!" portion and send it to another window.
I was doing
#TRIGGER {Raven:> (*)} {#CAPTURE Guild}
I tried using {within|param=1} but I wasn't sure how to use that properly. What am I doing wrong? |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Mon Jul 18, 2011 8:15 pm |
Don't know multistate triggers..
Code: |
#trigger {Raven:> (*)} {#capture Guild}
#cond { (*)} {#capture Guild}
or something like:
#trigger {Raven:> (*)} {}
#cond { (*)} {#capture Guild} |
Wish I knew more about multistate triggers, anyway I've made a trigger similar to my examples. |
|
|
|
Gimli Beginner
Joined: 16 Oct 2005 Posts: 22 Location: Canada
|
Posted: Mon Jul 18, 2011 8:23 pm |
Oh thanks!
If I did this
Code: |
#TRIGGER {Raven:> (*)} {#CAPTURE Guild}
#COND {(%d)(*)} {#CAPTURE Guild}
|
Would that work too.. that way it didn't matter how big the whitespace was in the 2nd line? (can't test it right now as I am at work) |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Mon Jul 18, 2011 8:35 pm |
You want %s, not %d. %s matches whitespace, %d matches digits.
|
|
|
|
Gimli Beginner
Joined: 16 Oct 2005 Posts: 22 Location: Canada
|
Posted: Mon Jul 18, 2011 8:36 pm |
Oops, yea I had %S first and must of replaced it with d and meant to add s
Thanks! |
|
|
|
|
|