![](templates/Classic/images/spacer.gif) |
FuSoYa Novice
Joined: 10 Feb 2007 Posts: 34 Location: Denton, TX
|
Posted: Sun Apr 20, 2008 1:47 am
Color Problems in CMUD |
Ok, my question has to do with coloring items in the mud. For instance if I try to color a word like 'you' I'd go in type it in the trigger area and put #CW bold,white.
That works great but then anything with the word you in it has it partly colored. For example it would highlight the y, o , and u in yourself or something. How do I make a boundary?
Thanks!
Brandon |
|
|
![](templates/Classic/images/spacer.gif) |
Dharkael Enchanter
![](images/avatars/9583916094231d31d8f24f.png)
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sun Apr 20, 2008 2:06 am |
Code: |
#REGEX {\byou\b} {#CW bold,white} |
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
![](templates/Classic/images/spacer.gif) |
FuSoYa Novice
Joined: 10 Feb 2007 Posts: 34 Location: Denton, TX
|
Posted: Sun Apr 20, 2008 2:07 am |
BAH! I tried that but didn't work for me. Thanks much.
|
|
|
![](templates/Classic/images/spacer.gif) |
Dharkael Enchanter
![](images/avatars/9583916094231d31d8f24f.png)
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sun Apr 20, 2008 2:09 am |
Code: |
#TRIGGER {%qyou%q} {#CW bold,white} |
Will also work. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
![](templates/Classic/images/spacer.gif) |
FuSoYa Novice
Joined: 10 Feb 2007 Posts: 34 Location: Denton, TX
|
Posted: Sun Apr 20, 2008 2:09 am |
Hrmm, if I already have it in there it still won't recognize the \b though... is that because I have to put it in originally using the #regex?
|
|
|
![](templates/Classic/images/spacer.gif) |
Dharkael Enchanter
![](images/avatars/9583916094231d31d8f24f.png)
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sun Apr 20, 2008 2:11 am |
You have to change the trigger to a regex trigger checking the "Regular Expression" option at the bottom left
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
![](templates/Classic/images/spacer.gif) |
FuSoYa Novice
Joined: 10 Feb 2007 Posts: 34 Location: Denton, TX
|
Posted: Sun Apr 20, 2008 2:14 am |
That's exactly what I needed to know. Thanks much.
|
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Apr 20, 2008 3:41 am |
%q is exactly the same as \b, but \b is for regexes and %q is for normal triggers. I reiterate this just to make it clear, in case you have any triggers using the normal syntax that don't want to (or don't know how to) change into regexes.
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|