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


Joined: 17 Mar 2004
Posts: 17
Location: USA

PostPosted: Fri Jun 09, 2006 2:36 am   

Color Question
 
Hi,

I'm trying to take all my MUD's channels and have the first portion of the message in one color (thru the colon in the example below) and the remainder of the message is another color.

Is this possible in any of the versions of zMUD?

Example:
<NAME> thinks: <MESSAGE>

Thanks in advance for any help.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Jun 09, 2006 4:54 am   
 
You can try
Code:
#TRIGGER {^%w thinks:} {#CW red}
or
Code:
#CO {^%w thinks:} red
.

The caret '^' matches the beginning of the line, %w matches a word. For more information see #CW and #COLOR.
_________________
Asati di tempari!
Reply with quote
Lyrael
Beginner


Joined: 17 Mar 2004
Posts: 17
Location: USA

PostPosted: Fri Jun 09, 2006 6:11 am   
 
Thanks...I actually spent a bit more time researching #PCOL and #CW after I posted and found another way to do it as well. But your example is more compact. It's not that I don't read the help documentation - but it tends to confuse me. The examples actually help a great deal. :)

Thanks again!
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sat Jun 10, 2006 3:30 am   
 
You could also use MXP Color tags after fetching the %1 and %2.

#TRIGGER {^(%w) thinks:(*)}

There are lots of ways to do things. Thats what i have found out over time. And hopefully a few of us can email zugg during the beta with EXAMPLES of commands being scripted that might make it easier to understand reading through it.
_________________
Confucious say "Bugs in Programs need Hammer"
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