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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
bkarasek
Beginner


Joined: 01 Jul 2002
Posts: 17
Location: USA

PostPosted: 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?
Reply with quote
kadaan
Beginner


Joined: 23 Jan 2002
Posts: 12

PostPosted: Thu Aug 01, 2002 11:00 pm   
 
Simply put a space after trig, so the pattern is "trig "
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Aug 02, 2002 1:49 am   
 
You could also employ range matching

#TRIGGER {{foo|bar|fred|wilma}[ .,?!]} {#CW 10}

Ton Diening
Reply with quote
bkarasek
Beginner


Joined: 01 Jul 2002
Posts: 17
Location: USA

PostPosted: 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.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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