About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Bennybennerson
Newbie


Joined: 23 Dec 2006
Posts: 1

PostPosted: Sat Dec 23, 2006 7:02 am   

Triggering off the command line echo
 
Just wondering how to disable triggers reacting to the command line echo thingy, such as, I type in something or other, like an illusion of an attack, it goes "type: Conjure illusiony Johnny stabs you with a poisonny thing"
"You conjure the illusiony thing"
It'd see the first one, and think Johnny is stabbing me with the poisonny thing, couldn't see a disabler thing in the options, any help is dandy
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sat Dec 23, 2006 10:57 am   
 
Probably easier to improve your triggers. At the moment then I could also send you a tell saying "Johnny stabs you with a poisonny thing" to fool you CMUD into doing whatever your triggers react with.

so the disabler thing is probably more of an improved pattern thing you're after.
#TRIGGER {^(%w) stabs you with a poisonny thing.$} {#say Back off poisonny %1!}
The ^ at the beginning forces it to only match from the start of a line. The $ at the end forces it to match the end of the line.

Guinn
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Sat Dec 23, 2006 2:16 pm   
 
Guinn is right. You can anchor your trigger patterns for greatly improved performance and anti-illusion measures. Also, you could make an alias for conjuring an illusion that would use #SEND to quietly send the illusion text, preventing the triggers from firing. The only downside to that (as far as I can see) is that you wouldn't have your illusion texts in any logs you recorded.

Code:
#ALIAS ci {#SEND {conjure illusion %-1}}
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