|
Keoteka Beginner
Joined: 06 Sep 2004 Posts: 10
|
Posted: Thu Jan 27, 2005 5:20 pm
Simple script question |
I made a script to color my friends names when I look through the who list. How do I trigger a variable to color only if it is a seperate word not part of a word (i.e. my friends name is Dre but if the word dream show up dre is colored)
#CLASS {buddyscript}
#ALIAS wanted {#ADDITEM wanted %1}
#ALIAS friend {#ADDITEM friend %1}
#ALIAS delwanted {#DELITEM wanted %1}
#ALIAS delfriend {#DELITEM friend %1}
#VAR wanted {abcd|efgh}
#VAR friend {ijkl|mnop}
#TRIGGER {{@wanted}} {#CW pink} "" {case}
#TRIGGER {{@friend}} {#CW cyan} "" {case}
#CLASS 0 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Jan 27, 2005 9:54 pm |
#TRIGGER {%q{@wanted}%q} {#CW pink} "" {case}
#TRIGGER {%q{@friend}%q} {#CW cyan} "" {case} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|