|2e@Lity Newbie
Joined: 15 May 2002 Posts: 0 Location: United Kingdom
|
Posted: Mon Apr 15, 2002 4:12 am
Help with Color Triggers? |
I'm trying to emulate the colour coding the server sends out in my game.
A sample readout is like this....
You notice nothing unusual,GSL
a horned frogGSM
(sleeping),GSL
a grey wolfGSM
(sitting),GSL
a falconGSM
and a richly finished wooden bench with some stuff on it.
GSL is basically highlight on, GSM highlight off.
I can't seem to get it to just highlight the words within the tags without highlighting the whole line....
This is what I have so far...
#TRIGGER {^(%*)GSL} {HighlightOn = 1;BoldTemp = %1;#GAG} "" {case}
#TRIGGER {^(%*)GSM(?)} {#SUB {@BoldTemp %1};BoldTemp = "";#IF {@HighlightOn} {#COLOR white};HighlightOn = 0} "" {case}
Which seems to color the whole line upto and including the word between the tags, but does sort the formatting out(Although I do seem to get an extra 'space' before the word(s) between tags.
Thanks for any help.
-=Insomniac=- |
|