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
tejing
Wanderer


Joined: 21 Dec 2001
Posts: 59
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Sinema
Beginner


Joined: 14 Nov 2001
Posts: 27
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Aug 12, 2002 10:21 pm   
 
#TRIGGER {~(Acorn~): %w says, "*"} {commands}

Kjata
Reply with quote
AzCowboy
Adept


Joined: 09 Nov 2000
Posts: 222
Location: USA

PostPosted: 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.
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