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


Joined: 01 Feb 2003
Posts: 4
Location: USA

PostPosted: Fri Jun 04, 2004 8:26 pm   

eliminating a new line in a chat
 
I am using this trigger to gag shouts but it is leaving a new line behind. How can I remove?

ex:
Bill shouts: Yadda Yadda Yadda Yadda Yadda Yadda Yadda Yadda Yadda
................Yadda Yadda
Errxxd shouts: ask on the shout line, that always gets you good,
....................useful advice

This is the trigger:
#REGEX "shouts2" {^(?:>s)?(w+) shouts:(.*)$$} {#GAG}
#COND {^ +(.*)$$} {#GAG} {looppat|prompt|regex}


What I will get on the screen is this:

(blank line)
................Yadda Yadda
(blank line)
....................useful advice

Totally clueless on this...any advice will be appreciated.

Zorp
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Fri Jun 04, 2004 8:32 pm   
 
As far as I am aware, that is an unfortunate 'feature' of #GAG.
Reply with quote
sirscribe
Newbie


Joined: 05 Jun 2004
Posts: 4
Location: USA

PostPosted: Sun Jun 06, 2004 12:06 am   
 
I'm not too familiar with the #REGEX command but it seems like you coiuld accomplish the gagging with a couple basic triggers, no?
#TRIGGER {^%w shouts~: *.} {#ga}
#TRIGGER {^%w shouts~: *$*.} {#ga}
#TRIGGER {^%w shouts~: *$*$*.} {#ga}

I'm guessing your mud doesn't allow you to just turn shouts off? *g*
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