|
bkarasek Beginner
Joined: 01 Jul 2002 Posts: 17 Location: USA
|
Posted: Thu Aug 01, 2002 8:29 pm
Color Confusion |
I am in a clan on my MUD and I want to color all the clan members' names green. I have done that. But now, for example, I have colored the name Trig green. But I do not want the T-R-I-G in trigger green, too. How can I set it to only color the word green, not all instances of that color combination?
|
|
|
|
kadaan Beginner
Joined: 23 Jan 2002 Posts: 12
|
Posted: Thu Aug 01, 2002 11:00 pm |
Simply put a space after trig, so the pattern is "trig "
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Aug 02, 2002 1:49 am |
You could also employ range matching
#TRIGGER {{foo|bar|fred|wilma}[ .,?!]} {#CW 10}
Ton Diening |
|
|
|
bkarasek Beginner
Joined: 01 Jul 2002 Posts: 17 Location: USA
|
Posted: Fri Aug 02, 2002 5:31 pm |
Thank you, Ton, that works great. Perhaps youcould enlighten me about the word being wholly contained within another. Example: I want Amon's name green, but not the amon in Diamond vial, for example.
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Aug 02, 2002 7:31 pm |
Can't think a way to add all cases.
Start of line
#TRIGGER {^{foo|bar|fred|wilma}[ .,?!]} {#CW 10}
End of line
#TRIGGER {[ .,?!]{foo|bar|fred|wilma}$} {#CW 10}
In a line
#TRIGGER {[ .,?!]{foo|bar|fred|wilma}[ .,?!]} {#CW 10}
Ton Diening |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Aug 03, 2002 4:06 am |
Also check the case-sensitive flag in the options tab, and put the names into the variable that way. In most cases that alone will fix it for about 80% of the names people use.
|
|
|
|
|
|