Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Wed May 16, 2007 2:33 am   

possible minor capture bug?
 
I have some text that is output from my mud as follows.
Quote:
13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
You can not do that while sleeping.

1008/1160H 13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
Sygis gossips 'hahaha'You can not do that while sleeping.

1008/1160H 13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
who
---Creators--
[ e- Herder ] Sygis welcomes you to our collective imagination :)

I have a trigger set up with a pattern of
Code:
^(*) gossips '*'$
and a script of
Code:
#CAPTURE tell;#GAG

that is supposed to capture the sygis gossips pat and send it to the tell window. it usually works, however once in a while (once a day or so) I see the gossip within the main window. It looks like I tried to do something that returned the you can not do that while sleeping part. and that somehow caused the sygis gossips part to be shown.
Any ideas if my trigger is bad, or if this is a bug?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed May 16, 2007 2:41 am   
 
It's the trigger. Your trigger states that there needs to be an apostrophe immediately before the end of the line, and in the example you have there, it's not the end of the line. You might want to remove the $ from the trigger and use #if (%ends(line,')) to determine whether or not another line has been stuck on the end or not. If there is another line, you'll probably want to use #sub and #window instead of #gag and #cap.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed May 16, 2007 11:31 pm   
 
It looks like you have a return character at the end of your prompt just like I do but I don't think I've ever had that problem, perhaps Sygis is spoofing you rather than using standard comms channels.

You could try my trigger and see if you get the problem.
Code:
#TRIGGER {^%w {gossip|say|tell|-|auction|shout|yell|ask|exclaim|sigh|smile|rage|state|snarl}%*'$} {#WIN Comm {%time(hh:nn)  %ansi(bold,%linecol)%line};#GAG}
_________________
Taz :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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