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
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Mon Dec 03, 2001 9:07 pm   

Got it working...but
 
After many tries, I got my capture triggers working, ironicly by simply following the Zmud Help Sample. But the problem now is whenever it gags what it captures, it leaves a blank line...therein messing with my nice neat format :P
I search the forums, and found that someone else was having the same problem, and I tried the solution that posted, which was making a trigger to gag the blank lines like so:
#TRIGGER {^$} {#GAG}

Which works, but it gags EVERY blank line, instead of just the lines left by the first gags, therein messing up my format again :P

So, I played aroud with it, and tried to put the trigger into the class that i have that captures and gags;nogo, it still gaged every blank line. So then I tried appending it to each capture trigger, like this:

#TRIGGER {gossip} {#CAP tell;#GAG} #TRIGGER {^$} {#GAG}
*All in one trigger.
But that wouldnt gag any of the blank lines...
So if any of you gurus want to play around with this, I would appreciate it :)
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Mon Dec 03, 2001 9:39 pm   
 
try this


#tr {gossip} {#cap 1 tell;#gag;#t+ gagblank}
#class {gagblank} {"disable"}
#tr {^$} {#gag;#t- gagblank}
#class 0

and that should gag just the one blank line after your channel capture trigger fires
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Mon Dec 03, 2001 10:36 pm   
 
Works like a charm :) Thanks!!!
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