Posted by Tharena on March 6, 2000 at 12:26:57:
In Reply to: Color in Zmud posted by Dwarek on March 6, 2000 at 11:16:25:
> How do i color the things like damage, tells, yells, "im beeing attacked by" and so on in zmud?
There is a whole help file on it in zmud, for what color is what, but the command is #color. You can change the background and foreground colors both, depending on a numerical value, though you can also use color words like 'blue', 'green', 'brown', 'orange', and so forth. Best to experiment with it.
----------
Help #COLOR
Syntax: #CO attribute [pattern]
Related: #HIGHLIGHT
Example
If the pattern parameter is left out, this command changes the color of the last line received from the MUD. The color attribute can be a numeric attribute (compatible with the attribute values used by the text modes of DOS) or can be a combination of string values listed below, separated by commas.
If the pattern is included, a trigger is created to color any line matching the given pattern with the specified color.
Color values:
black 0
blue 1
green 2
cyan 3
red 4
magenta 5
brown 6
gray 7
yellow 14
white 15
bold 128
to make a color brighter, add 8 to the base value. For example, 9 is bright blue. To change the background color, rather than the foreground, multiply the base value by 16. For example, to get a red background, use 4*16 or 64. To make the foreground font bold, add 128 to the value.
Thus, a bold white on a blue background would be 128 + 1*16 + 15 = 159.
-------
To set up color triggers, set your pattern to whatever it is you want to colorize, remembering that you have to get the capture exactly, or use variables like %param1, and so forth.
An example I use of a color trigger is to keep track of Water Breathing:
Colorize: Commune: 'water breathing' modifies none by 0 for (*) hours. -> #color 9
Or food and water:
+ General maintenance: You are hungry -> #color brown
+ General maintenance: You are thirsty -> #color blue
Of course, Carrion Fields already has color for things like tells, yells, damage words, and so forth. Just type 'color'. =P
- Tharena