|
krazymanix Newbie
Joined: 08 Dec 2002 Posts: 1 Location: USA
|
Posted: Sun Dec 08, 2002 10:35 pm
HELP! Triggers not working, version 6.16 |
Ok. Let me explain my problem.
When I put as pattern arrives.
I want it to appear in a certain color, lets use white for example. I put #COLOR white then it works, but If I put #COLOR FFFFFF it doesnt work, I need to use VEX to assign colors because I want to make alot of color triggers sense the mud I play doesnt have ANSI. Anybody help?
Moral Decay
md.usf.lib.edu 3003 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Dec 08, 2002 11:43 pm |
#COLOR only uses named colors. It also uses numbers for colors, but it is still the basic 16 ANSI colors, not the 16581375 you can get by using hexadecimal.
If you really need to use the colors like that, then try using MXP instead. Here is an example (I'm assuming you want the whole line in color):
#TRIGGER {arrives} {#GAG;#SH {~<font color=#FFFFFF~>%trigger~</font~>}} "" {notrig}
Kjata |
|
|
|
knuffel Wanderer
Joined: 12 Jul 2002 Posts: 73
|
Posted: Sun Dec 08, 2002 11:48 pm |
Hi Krazymanix,
Based on the Help Files
http://www.zuggsoft.com/zmud/help6/helpset.htm
So FFFFF is not gonna work, but you can calculate some other values with the info below.
Greetz
Knuff
< WOOPPSS, To Late, was already in reply mode and Kjata was faster. Still might help a little though>
COLOR
Syntax: #CO attribute
#CO pattern attribute
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.
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. |
|
|
|
|
|
|
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
|
|