 |
Amylon Novice
Joined: 31 Jan 2003 Posts: 49 Location: Australia
|
Posted: Wed Jun 30, 2004 8:47 am
Colorizations in words |
Greetings,
I have a stringlist for all my clan members that looks like this:
Name: clanm
Stringlist: Ralph|Michelle|Jon|Jack|Garradiane|Jerryine|Charlit
Now I have a trigger that colors these people as such:
#TR ({@clanm}) {#cw high,red}
The problem I have is that besides coloring my people it also colors:
Jonathon, Jackman, Garrad, Jerry, Helle, Diane, Ryi and Chel
Is there a way to make it so it only colors if it is an exact match to the name within the Clanm stringlist? |
|
|
 |
jessew Apprentice
Joined: 03 Mar 2003 Posts: 141
|
Posted: Wed Jun 30, 2004 9:16 am |
Use braces for list
#TRIGGER {{@clanm}} {#cw high,red}
Cheers |
|
|
 |
Amylon Novice
Joined: 31 Jan 2003 Posts: 49 Location: Australia
|
Posted: Wed Jun 30, 2004 10:37 am |
{{@clanm}} doesnt work at all due to the fact there is no syntax at all that uses double {
Thanks for trying :) |
|
|
 |
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Wed Jun 30, 2004 12:52 pm |
#TRIGGER {%q{@clanm}%q} {#cw high,red}
|
|
|
 |
Yodous Apprentice
Joined: 23 Jun 2004 Posts: 105 Location: Poland
|
Posted: Wed Jun 30, 2004 1:37 pm |
Use space in pattern
#TR ({@clanm} ) {#cw high,red}
or in the string list
Ralph |Michelle |Jon |Jack |Garradiane |Jerryine |Charlit |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jun 30, 2004 4:09 pm |
#TR {%q{@clanm}%q} {#CW hi,red}
You need to mark the word boundaries if you don't want partial words colored. %q was made for precisely this purpose.
And yes, {{@clanm}} does work. The syntax which uses double {} is the syntax to use a stringlist, by itself, as a trigger pattern. You have it incorrectly as ({@clanm}), which creates the same trigger but doesn't match the documentation. |
|
|
 |
remus Wanderer
Joined: 06 Jul 2002 Posts: 53 Location: Australia
|
Posted: Wed Jun 30, 2004 9:20 pm |
#TR {({@clanm})} works too.
|
|
|
 |
|
|