|
uviel Beginner
Joined: 24 Feb 2007 Posts: 12
|
Posted: Sun Mar 04, 2007 7:57 pm
Ansi trigger problems |
Trying to make a disarm trigger so that it fires only when I get disarmed by a mob and not when someone says or emotes it.
This is the mud output when I get disarmed (mob name changes respectively)
a short hill troll DISARMS you and sends your weapon flying!
I made the following trigger
%e[1;33ma~ DISARMS you and sends your weapon flying! --> set the trigger to ansi and pasted the text from the mud to get the color (it is always the same)
For some reason it is not firing, tried with and without ~ and with %w but cannot get it to work.
I know I am doing something wrong so any adivce, solution would be appreciated.
Thanks., |
|
|
|
uviel Beginner
Joined: 24 Feb 2007 Posts: 12
|
Posted: Sun Mar 04, 2007 10:24 pm |
Solved it with (%1) instead of ~, works nicely.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Mar 04, 2007 11:19 pm |
(%1) Is unsupported you are using the wrong pattern matching character in your example you need * to match anything or (*) to match anything and capture it to %1
%e[1;33ma * DISARMS you and sends your weapon flying! |
|
|
|
|
|