Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Sep 28, 2002 2:40 pm |
There are two ways of doing this:
1. Triggers have an option to Trigger on Line Color and you specify which color that would be. In this case, the trigger would only check for a match in the pattern if the line color is the one specified.
2. The other, more comples method, is to create an ANSI trigger. In theory this should be easy, but right now it isn't. What you need to know is the ANSI sequence that your MUD sends for the color you want. To do this, copy the line you want to trigger on (any red line in your case should do) and open the Editor (Window|Editor). Make sure that Options|Raw Mode is selected and paste the copied line into the editor. Now you will see the ANSI sequence used (they start with a rectangle-like character and end with an "m"). Finally, copy the sequence into the pattern box for your trigger and replace the "rectangle-like character" with %e in the pattern. Also, make sure the Ansi Trigger options is selected.
Kjata |
|