Using the technique you taught me in the other thread I asked about, I tried to implement a new feature, and met with little success.
Using the 'practice' command, it shows me a three column list of my currently practiced skills, in this format:
turn undead 68% bash door 68% disarm 99%
What I want it to do is to color the skills less than 99% normally, but recolor skills at 99% a different color.
I set up a trigger to match such as this:
I figured it'd put the first skill name in the first *, the first percent amount in the second *, and so on.
First off, this trigger would only fire when I used the test trigger function of the program. Using an exactly copied line from the MUD output, I tested the trigger, and it fired. But when I used the practice command and the entire list showed up, not a single one of the lines fired the trigger, not even the one I copied. I have your prompt newline plugin installed, by the way.
Secondly, when I used the test trigger for it to fire, I found out that for some reason, the asterisks I THOUGHT were storing the skill names were instead storing just a couple of spaces, and the percent asterisks ended up storing the entire block (skill name AND percent amount). So with the above example, the wildcards ended up being:
1 - " "
2 - " turn undead 68"
3 - " "
4 - " bash door 68"
5 - " "
6 - " disarm 99"
This isn't how I want it, as it's not going to be recolored correctly.
Any help with this matter would be most appreciated :)
Posted edited by Nick to show spacing
|