|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Mon Aug 05, 2002 5:34 am
capturing to a window |
I want to take a line like this:
%w tells you: *
*
*
*
(There could be any number of " *" lines afterward, or none)
(I looked at the message afterward and realized the five spaces before the "*" on the 2nd-4th lines didn't show up! They should be there tho)
and i want to capture those lines to a window called whatever the %w is.
I think you want a trigger like so:
#trigger {(%w) tells you: *} {#c+ %1;#gagon}
But i don't know what to trigger on to turn off the capture and gag.
Tejing |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Aug 05, 2002 12:04 pm |
You can use the spaces to know what to capture and what to leave alone:
#TRIGGER {(%w) tells you: *} {#Var window %1;#T+ getTell;#CAP @window;#GAG}
#TRIGGER "getTell" (*) {#IF (!(%line =~ "%w tells you: *")) {#IF (%begins(%line, " ")) {#CAP @window;#GAG} {#T- getTell}}}
Kjata |
|
|
|
Sinema Beginner
Joined: 14 Nov 2001 Posts: 27 Location: USA
|
Posted: Mon Aug 12, 2002 8:22 pm |
Okay I have a question
I'm not wanting to catch tells
I play on Achaea.com and they have Channels..
Curious how you could catch a line like this
(Acorn): Person says, "Blah blah blah"
~
Regards,
Sinema |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Aug 12, 2002 10:21 pm |
#TRIGGER {~(Acorn~): %w says, "*"} {commands}
Kjata |
|
|
|
AzCowboy Adept
Joined: 09 Nov 2000 Posts: 222 Location: USA
|
Posted: Mon Aug 12, 2002 11:29 pm |
My take:
Trigger: ^~((*)~): (*)
Commands: #win %1 %time(hh:mm)> %2
#gag
Captures it to a window, timestamps it, and gags it from the main screen...
NOTE: This only works for single lines... if it spans lines, it will only capture a single line... I used to have an elaborate setup to deal with that, worked great, too... But I haven't played Achaea in like a year, and two computers... all my settings are gone.
AzCowboy, the Achaea addict. |
|
|
|
|
|