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
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Tue Jul 02, 2002 7:06 pm   

Word Highlights
 
I was creating some hightlight triggers and I can't figure out how to stop Zmud from highlight strings of that word in other words.

For example, let's stay I want to highlight red as the color red but the problem I get is the letters "red" is highlighted in words that contain "red" and not just the whole word red.

Any comments?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jul 02, 2002 7:18 pm   
 
Depends on the word you are trying to catch.

Try grabbing the thing you wish to highlight
with a following space or punctuation.

#TRIGGER {red[ ,.!?]} {#CW red}

Other kinds of words work well with a preceeding
space and/or capturing it from the beginning
of the line.

#TRIGGER {^Red} {#CW red}
#TRIGGER { red} {#CW red}

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Oracle
Apprentice


Joined: 29 May 2002
Posts: 121

PostPosted: Tue Jul 02, 2002 9:15 pm   
 
Actually, I'm not doing a trigger on the specific word but instead setup a trigger on a stringlist. So would this be the same thing? Not at home right now so can't try it but just wanted an idea so I have something to work with later.

Thanks

#trigger {([ ]@redcolorlist}) {#CW bold,red}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jul 02, 2002 9:25 pm   
 
quote:

Actually, I'm not doing a trigger on the specific word but instead setup a trigger on a stringlist. So would this be the same thing? Not at home right now so can't try it but just wanted an idea so I have something to work with later.

Thanks

#trigger {([ ]@redcolorlist}) {#CW bold,red}



Generally, you'll want to include a space or other identifying mark on BOTH sides of the word/wordlist. Also, if you don't like having the extra stuff (ie, punctuation) colored, I'd recommend you use %ansi() or the MXP color tag.

li'l shmoe of Dragon's Gate MUD
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