 |
Zorprime Newbie
Joined: 01 Feb 2003 Posts: 4 Location: USA
|
Posted: 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 |
|
|
 |
Insomniac Wanderer
Joined: 25 Mar 2004 Posts: 78 Location: United Kingdom
|
Posted: Fri Jun 04, 2004 8:32 pm |
As far as I am aware, that is an unfortunate 'feature' of #GAG.
|
|
|
 |
sirscribe Newbie
Joined: 05 Jun 2004 Posts: 4 Location: USA
|
Posted: 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* |
|
|
 |
|
|