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


Joined: 11 Jun 2006
Posts: 2

PostPosted: Sun Jun 11, 2006 1:23 am   

making a color trigger to color only part of a line
 
I am wondering how do you make a colour trigger that will only color the matching piece of the trigger. for example

The quick brown fox jumps over the lazy dog

and I only wanted to colour the word brown as in the example.


ok, figured that much out (#CW) but, modified question still

how would you make it so that "ten" is what you want coloured and it's in "atention" with CW it colors the whole word, how do you just tell it to colour that portion?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: Sun Jun 11, 2006 1:46 am   
 
surround the word or variable array with %q on either side, no space, that gives it an effective word boundry
_________________
Discord: Shalimarwildcat
Reply with quote
Honka
Newbie


Joined: 11 Jun 2006
Posts: 2

PostPosted: Sun Jun 11, 2006 2:10 am   
 
Thanks alot, that most definantly worked
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