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


Joined: 08 Sep 2007
Posts: 15

PostPosted: Mon Sep 08, 2008 5:52 pm   

color trigger problem
 
I searched the site for this, but couldn't find anything after some searching, anyway...

I am making color triggers for combat, and coloring lines for when I attack one color, when I am attacked another color, and what kind of attack it is (stab, slash, hit, etc.) in some other color.

What I want to know is: how can I get zmud to only color words when they match exactly? For example I have "hit" colored bold green. But this will also color the word "hit" when it is inside the word (white) w"hit"e. And I want "red" displayed in red. But it also colors "red" in the word (colored) colo"red".

Thanks!
Reply with quote
shalimar
GURU


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

PostPosted: Mon Sep 08, 2008 6:12 pm   
 
There are two methods, both of which would work.

The simple method is, include the spaces on either side.. hit is not usually the first or last word.
The method that works without spaces is to instead surround it with: %q

#TR {%qred%q} {#CW 12}
#TR {%qhit%q} {#CW high,green}
_________________
Discord: Shalimarwildcat
Reply with quote
telepasea
Beginner


Joined: 08 Sep 2007
Posts: 15

PostPosted: Mon Sep 08, 2008 6:36 pm   
 
Thanks!!! :D
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