Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: 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
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: Sun Apr 20, 2008 2:07 am   
 
BAH! I tried that but didn't work for me. Thanks much.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: 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?
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: Sun Apr 20, 2008 2:14 am   
 
That's exactly what I needed to know. Thanks much.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net