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


Joined: 14 Jun 2003
Posts: 2

PostPosted: Mon Aug 11, 2003 10:29 pm   

help, gag/capture
 
I'm capturing tells and sending it to another window, then gagging the tell on the original window. No problem there, but the mud sends 1 blank line, then the tell, then another blank line.
What I can't figure out is how to gag the first blank line?

I was thinking something like:
#trigger {tells you} {#gag -1;#gag;#T+ tBlankLine;#cap tells}

That didn't work so great though. I'm pretty hopeless when it comes to trigger states, so if there's a way to do it using that I wonder if someone could explain.

TIA!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Aug 12, 2003 1:05 am   
 
EDIT: create a trigger with the blank-line pattern first and put a #GAG command in that pattern's code. Next create a new state for the trigger (you can do this via the Settings Editor when you're making the trigger, or you can use the #CONDITION command in place of the #TRIGGER command) based on your tell pattern. Appropriate code goes there. Finally, repeat the blank-line pattern from the first state:

#trigger {^$} {#gag}
#condition {your tell pattern} {your code;#gag}
#condition {^$} {#gag}
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