|
Lyrael Beginner
Joined: 17 Mar 2004 Posts: 17 Location: USA
|
Posted: 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. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Lyrael Beginner
Joined: 17 Mar 2004 Posts: 17 Location: USA
|
Posted: 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! |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: 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" |
|
|
|
|
|