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
Ilkthor
Newbie


Joined: 22 Nov 2006
Posts: 1
Location: Australia

PostPosted: Wed Nov 22, 2006 2:47 pm   

Coloring 1 word in 1 type of sentence
 
I'm very new to Zmud triggering, and have a problem with word coloring.

I would like to color three words in this sentence:

Some fairly recent tracks blah leaving east.

This is easy enough, but I do not want to color these words outside of this sentence! Zmud remembers the colors given to these words, and colors them in all other instances. How do I prevent this?

I understand how to capture the words:
Some (%w) (%w) tracks*leaving (%w).

Thanks in advance.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Nov 22, 2006 3:21 pm   
 
Perhaps use #PCOL.

PCOL Example

#TRIGGER {(%w) tells you} {#PCOL mxpblue %x1}

Colors the text matched by the (%w) in the pattern (XStart and XEnd given by %x1 variable) bright blue.


#TRIGGER {^Some (%w) (%w) tracks*leaving (%w). $} {#PCOL yellow %x1;#PCOL yellow %x2;#PCOL orange %x3}
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