 |
Solaras Wanderer
Joined: 11 Mar 2002 Posts: 93
|
Posted: Wed Dec 17, 2003 2:42 am
Having problems with my capture script |
ok first here is the script
#CLASS {Cap} {disable}
#TRIGGER {*} {#cap @Cap}
#CLASS 0
#CLASS {Capture Chat}
#VAR cap {Talk2}
#TRIGGER {^%1 tells you, (*)} {#var cap "Tells";#class cap 1}
#TRIGGER {^~(%1~):(*)} {#var cap "%1";#class cap 1}
#TRIGGER {^~<~<(%w)~>~>:(*)} {#var cap "Talk2";#class cap 1}
#TRIGGER {^(%d)h, (%d)m(*)} {#CLASS Cap 0}
#CLASS 0
Now.. The 'Tells' trigger works, the '%1' trigger works..
the 'Talk2' trigger won't work properly
Here is an example
<<Talk2>>: John says, "This is an example of the trigger not working."
Now the way it is supposed to work of course is capture that line and send it to the Talk2 window.. but it doesnt.. However, if the line look like this
<<Talk2>>: John says, "This is an example of the trigger partialy
working."
What happens is in the Talk2 window I get a line that says
working."
all the other triggers work and capture multiple lines correctly, but this one won't capture the lines properly for some reason.. if anyone can tell me how to fix it I would appreciate it. |
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Wed Dec 17, 2003 4:45 am |
Your trigger is ste to put "talk2" in the variable is one problem
#TRIGGER {^<<(%w)>>:(*)} {cap={%1};#class cap 1}
worked on the above examples |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Dec 17, 2003 2:57 pm |
It looks like a trigger-order problem. The trigger in the Cap class is being evaluated before the Talk2 trigger, so it isn't enabled and doesn't start capturing until the following line. Just add a #CAP command to the Talk2 trigger. I'd also simplify the pattern since it's designed specifically for the Talk2 channel.
#TR {^~<~<Talk2~>~>:} {#CAP Talk2;#VA Cap Talk2;#CLA Cap 1} |
|
|
 |
|
|