|
ShadowMaster Newbie
Joined: 05 May 2005 Posts: 2
|
Posted: Thu May 05, 2005 8:31 pm
ANSI Triggers |
Okay, I'm aware that there have been other questions similar to this one, but I haven't been able to adapt any of the responses to those questions to my situation. I want to make a trigger where -any- text in a given color sets it off, regardless of where in the line the colored text starts. I assume it would be something like
Code: |
#tr {%e[1;31m(*)%e[0m} {dosomething} |
And yes, I do have the ANSI trigger option on. Is there anyone that could help me out?
|
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Thu May 05, 2005 8:42 pm |
Odd,
I tested with this and it worked just fine:
#TRIGGER {%e[32m(*)%e[0m} {#ECHO %1} |
|
|
|
Tarn GURU
Joined: 10 Oct 2000 Posts: 873 Location: USA
|
Posted: Fri May 06, 2005 2:22 pm Re: ANSI Triggers |
There are a couple of ways for the server to send color commands. There can be a comma-separated list between '[' and 'm' or just one.
Can you give us a log excerpt from the mud? (turn on ansi logging in the logging section. View|Preferences|General menu)
-Tarn |
|
|
|
ShadowMaster Newbie
Joined: 05 May 2005 Posts: 2
|
Posted: Fri May 06, 2005 7:45 pm |
Oddly enough, despite the format appearing to be the same, after using the code in the ansi log to make the trigger, it worked fine. Thanks for the help.
|
|
|
|
|
|