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
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sat Jan 04, 2003 9:31 pm   

settings in child window
 
I'm having problems with funny echos in a child window. the settings i'm using look like this:


#CLASS {snoop}
#TRIGGER {!(%w)--> (%*)$} {#cap 1 %1;#gag}
#TRIGGER {(%w) snoop begin output pattern alpha: } {#gag;#t+ capture;window = %1}
#TRIGGER {End snoop output pattern beta} {#gag;#t- capture}
#CLASS 0

#CLASS {snoop|capture} {disable}
#TRIGGER {^%*$} {#cap 1 @window;#gag}
#TRIGGER {^$} {#gag}
#CLASS 0

the problem is with the second trigger there,
the line that triggered it gets sent to the child window when i want it to be gagged.
any know how to keep this line out of either window all together?
Thanks
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Jan 04, 2003 10:13 pm   
 
quote:

C+

Syntax: #C+ [name]
Related: #C-

Starts capturing lines and sending them to the specified window. If ‘name’ is omitted, lines are sent to the command editor (assuming capturing is enabled within the editor). Otherwise, the lines are sent to the named window. The window is created if it doesn’t exist. If the Capture Commands option is on in the preferences, then commands entered into the command line will also be captured to the window.

C+ example

#C+ temp

starts copying all lines received from the MUD to the window named temp.



How about something like:

#TRIGGER {(%w) snoop begin output pattern alpha: } {#gag;window = %1;#C+ @window}
#TRIGGER {End snoop output pattern beta} {#gag;#C- @window}

Ton Diening
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sun Jan 05, 2003 1:43 am   
 
well, i don't use #c+/- because
1) it doesn't gag the main window
2) funny echo statements "Capture text ON
", etc.

but i did solve my problem with a trigger state, thanks :)

#CLASS {snoop}
#TRIGGER {!(%w)--> (%*)$} {#cap 1 %1;#gag}
#TRIGGER {(%w) snoop begin output pattern alpha: } {#gag;window = %1}
#COND {^%*$} {#t+ capture}
#TRIGGER {End snoop output pattern beta} {#gag;#t- capture}
#CLASS 0

#CLASS {snoop|capture} {disable}
#TRIGGER {^%*$} {#cap 1 @window;#gag}
#TRIGGER {^$} {#cap 1 @window;#gag}
#CLASS 0

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