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
Spectrum
Beginner


Joined: 13 Feb 2003
Posts: 13
Location: Philippines

PostPosted: Sat Sep 27, 2003 4:22 pm   

Coloring specific words only.
 
Using #CW we could color certain words like doll. Now my problem is when a word dollar comes in it collors the "doll" in dollar. So I just put a space after doll like this "doll " so it colors only dollar. Now the problem is when a name like "Bodoll" comes in, if I put in the pattern " doll ", spaces before and after the word. The word doll that comes on the start of the sentence and line of the zmud wont be colored. How?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Sep 27, 2003 5:55 pm   
 
You can use the anchor characters, ^ and $, to indicate the beginning and end of a line.
Reply with quote
Spectrum
Beginner


Joined: 13 Feb 2003
Posts: 13
Location: Philippines

PostPosted: Wed Oct 01, 2003 2:27 pm   
 
but isnt the $ meaning end of the line? and ^ start of the line? what if its in the middle of a sentence?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 01, 2003 4:17 pm   
 
If it comes in the middle of the line, you have a space in front of it and another space or punctuation after it.

I think you're hoping there's some magic way to put all this into one trigger. I don't think there is.
Reply with quote
Backu
Novice


Joined: 24 Feb 2003
Posts: 36
Location: USA

PostPosted: Thu Oct 02, 2003 4:47 am   
 
Using something Zugg told me once when I was having a similar problem, I would have to suggest using something like:

{^doll%s|%sdoll%s|%sdoll$} for the pattern, might work, might not, haven't really tried it lately.
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