|
Sorin Beginner
Joined: 28 Mar 2004 Posts: 10 Location: USA
|
Posted: Sat Oct 10, 2009 5:04 am
Multi Color line pattern matching? |
Ok, So I am working with something that is not documented so easily. Here is an example of what I am trying to accomplish.
Pattern: Bob drops something here.
I only want it to fire if the word here is in brown. Otherwise, it should not fire. The line is in a differing color.
Here is what I have attempted, using an ansi trigger.
#trigger {(*) drops (*) %e[8;33m(%w).} {#echo Its a hit!}
I dont remember the command line option to turn it into an ansi trigger, so I just opened its editing window and turned it on there.
This doesnt work, does someone have a better idea? Or am I doing something wrong? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Oct 10, 2009 3:10 pm |
To make sure your are using the right color code
Select the whole line from the mud window
open the settings editor
create a new trigger
Turn on the ansi trigger option
select the pattern box
press CTRL-V to past the pattern with escape codes
remove the ones your not worried about and see if you can get it to work
If you cant get it to work post the whole line here with all of the escape codes in place and ill try and dig into it further. |
|
|
|
Sorin Beginner
Joined: 28 Mar 2004 Posts: 10 Location: USA
|
Posted: Mon Oct 12, 2009 8:02 am Not Working |
I have selected the line and tried your steps in exact sequence, and it is not grabbing the ansi code escape characters at all.
|
|
|
|
|
|