 |
Bennybennerson Newbie
Joined: 23 Dec 2006 Posts: 1
|
Posted: 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 |
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: 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... ;) |
|
|
 |
Larkin Wizard

Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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}} |
|
|
|
 |
|
|