Posted by [_SnArF_] on March 23, 2000 at 10:41:37:
In Reply to: I just figured it out myself and im in geed mood, so here is how you color tells: posted by Xzenlodan on March 23, 2000 at 06:22:35:
COLOR
Syntax: #CO attribute
#CO pattern attribute
Related: #HIGHLIGHT
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
grey 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.
COLOR examples
#CO red
changes the color of the last line received to red.
#CO bold,red
changes the last line to bold font and colors it red
#CO 159
set color of last line received to bold white on blue background.
#CO {tells the group} red
same as #ACTION {tells the group} {#CW red}. Whenever a string is received from the MUD containing the pattern tells the group, the phrase is colored red. Only the phrase is used because #COLOR secretly uses the #CW command. If you really want the entire line colored, you must create the trigger manually using:
#TRIGGER {tells the group} {#COLOR red}
So, If you want to get all fancy-smashy:
#trigger {(*) tells you '(*)'} {#cw white,bold} -- will make "SnArF tells you 'I kick ass.'" bold white.
#trigger {You parry (*)} {#cw green,bold} -- will make "You parry SnArF's thwack." bold green.
#trigger {You lose concentration.} {#cw blue} -- will make "You lose concentration." blue.
If you want shit done for you, e-mail me a list of things you want colored and the colors you want them (That means ALL of them, the text sent by the MUD). If I get time, I'll respond with the colors or whatever.
--SnArF is tired of hearing stupid people.