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
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Sun Jul 26, 2009 8:38 pm   

Loop Lines and #echo
 
Quote:
*Loop Lines
The parameter will be shown to sets the number of lines to test this trigger. The trigger will be tested each time a line is received from the MUD until the specified number of lines have arrived

It seems to also test lines that are added using #echo.. Is this the intent?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: Sun Jul 26, 2009 8:58 pm   
 
Hmm... echo is normally processed by triggers, so it may be...

have you tried using #PRINT instead, it will not fire triggers.
_________________
Discord server
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Sun Jul 26, 2009 9:31 pm   
 
Ahh.. Interesting..
Yep #print doesn't seem to trigger it..
Perhaps the documentation for either #echo, or the loop lines, should be amended to mention this.. Probably the #echo, if it triggers anything that looks at "MUD output", which I wouldn't have expected local display to be counted as..

Thanks Smile
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jul 26, 2009 10:34 pm   
 
This is intentional, and also the reason why #PRINT was created. There's nothing that really needs to be amended. :P

Charneus
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: Mon Jul 27, 2009 12:06 am   
 
I think the help documents should be amended.

#SHOW and #ECHO both say they are related to #SAY but the favor is not returned, and #PRINT is out all by its lonesome.
_________________
Discord server
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Sat Aug 29, 2009 12:12 pm   
 
Is it the intention that lines #PRINTed are affected by gags?
If so, why?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Aug 29, 2009 4:31 pm   
 
Yes, #PRINT lines are still effected by gags. There is no way to avoid this. CMUD can prevent the text from #PRINT from firing a trigger, but it when #GAG tries to remove lines once they are already on the screen, there is no way for #GAG to know which lines were from #PRINT and which lines were from other methods. So this won't change.

The reason the documentation isn't fully linked yet is that #PRINT was introduced in the 3.x beta version and the documentation isn't normally fully updated for beta versions. I clean up the documentation right before a public release. Any documentation that you see on Beta features before a public release was created by the Gurus as a public service.
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Sun Aug 30, 2009 12:13 am   
 
Hmm well.. My problem was that I was doing for instance #gag 10, and triggers that were firing during the gagged lines did #print, which didn't appear, but used up the gag lines..
If it's in the middle of a "#gag x" type thing, it wouldn't need to be removing lines that are already there.. Or would it?
Even if it can't avoid hiding the line, it could realize that the line that was just displayed was from #print, and not change the gag counter..
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