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
Kelemvor
Newbie


Joined: 23 Mar 2004
Posts: 4
Location: United Kingdom

PostPosted: Thu Mar 25, 2004 12:55 pm   

Channel Capture Help!!!
 
Im looking for a bit of help with the script below, its from the Finished scripts section of this forum.

I can get it to make the new window, and it captures the text, adding time stamps to tells, and channel captures etc...

The problem i have is that it also captures everyother bit of text from the main wndow.

Anyone have any ideas?


#CLASS {Communication}
#TRIGGER {^~((%w)~):(*)} {#var cap "%1";#class cap 1}
#TRIGGER {^(%w) tells you,} {#T+ cap}
#TRIGGER {^You tell} {#T+ cap}
#CLASS 0
#CLASS {Communication|Cap} {disable}
#TRIGGER {*} {#CAPTURE Channels}
#CLASS 0


The following should go in the settings file for the window named "Channels"

#CLASS 0
#TRIGGER {^~((%w)~):} {#SUBSTITUTE {"["%time( hh:mm)"] ("%1"):"}}
#TRIGGER {You tell (*), ~"} {#SUBSTITUTE {%ansi( 12)"["%time( hh:mm)"] - You tell" %1 ","}}
#TRIGGER {(%w) tells you,} {#SUBSTITUTE {%ansi( 12)"["%time( hh:mm)"]" %1 "tells you,"}}
Reply with quote
moksha
Novice


Joined: 13 Oct 2002
Posts: 37
Location: United Kingdom

PostPosted: Thu Mar 25, 2004 2:19 pm   
 
Hi

It says in the same thread that you should put a #T- cap in your prompt trigger.

Hope that helps
Moksha
Reply with quote
Eyeless
Wanderer


Joined: 02 Dec 2001
Posts: 80
Location: Canada

PostPosted: Thu Mar 25, 2004 2:26 pm   
 
Yeah... the reason everything is being captured is because one of your triggers is telling it to. I also don't see anything here that would shut the capture text off. (the first time one of those triggers fires, it will capture text forever... (or until you log off)

#TRIGGER {*} {#CAPTURE Channels} /// I could be wrong, but my understanding of this trigger is:
On anything, capture text to "channels."

I would totally restructure this myself(mind you Im not the best coder...) maybe something like:

#CLASS {Communication}
#TRIGGER {^(%w) tells you,} {
#SUB {%time("h:nn") %1 tells you,}
#CAP THOUGHTS
#GAG
}
#TRIGGER {^You tell} {
#SUB {%time("h:nn") You tell %1,}
#CAP THOUGHTS
#GAG
}
///// ...etc
#CLASS 0
etc...
I didn't deal with a few issues (such as colours,) but I'm sure you can figure that out.
Reply with quote
Kelemvor
Newbie


Joined: 23 Mar 2004
Posts: 4
Location: United Kingdom

PostPosted: Thu Mar 25, 2004 2:49 pm   
 
Yeah i did the #T- cap bit to, but the trigger

#TRIGGER {*} {#CAPTURE Channels}

for some reason was not classed in cap.

Its all sorted now thanks for the help.
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