|
coderguy Newbie
Joined: 11 Aug 2004 Posts: 3
|
Posted: Wed Aug 11, 2004 6:41 am
Zmud and Colors |
The use of colors in a text game is very helpful. I recently discovered some limitation in another client I had been using (Portals) -- which prompted me to purchase zMUD. The previous client allows usage of 16 different background colors. I was surprised when I discovered that zMUD" only allows a selection from 8 background colors. Why can't zmud allow 16 different background colors when using <#CW> in order to mark triggerable phrases? Am I missing something?
|
|
|
|
SCORNME Novice
Joined: 25 Jul 2004 Posts: 48 Location: aka Falan
|
Posted: Wed Aug 11, 2004 7:40 am |
Can you use %colorname?
|
|
|
|
coderguy Newbie
Joined: 11 Aug 2004 Posts: 3
|
Posted: Wed Aug 11, 2004 4:39 pm |
%colorname will not work. It only returns a value for one color. I need both a background, AND foreground color value to place in #CW for a trigger. If I try (for example)
%color (aqua,antiquewhite)
-- then result will be 0. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Aug 11, 2004 9:54 pm |
You should be able to use the foreground,background syntax with #CW. The addition of some delimeters never hurts, the proper one in this case is braces.
#TR {some triggerable text} {#CW {aqua,antiquewhite}} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
coderguy Newbie
Joined: 11 Aug 2004 Posts: 3
|
Posted: Wed Aug 11, 2004 11:20 pm |
Yay! This is beautiful! Thank you Mr. Wizard!
I went back to the zmud help files, but couldn't find your example there. Nevertheless, it works great!
Now I came accross another little problem with the color 'red,' but I found a solution. I have been trying to get a bright "red" background against a yellow foreground. When I use:
#TR {some triggerable text} {#CW {yellow,red}}
The background red is a dark red; same as {yellow,darkred}
If I change this to be:
#TR {some triggerable text} {#CW {yellow,$FF0000}}
I am elated in that I get the rich red that I am wanting.
Is this a little bug, or is it by design? Or are my client setting off somehow?
Anyways, I am quite happy now. Thank you! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Aug 12, 2004 12:46 am |
The original color coding is the standard MS-DOS 8-bit palette, which allows bright colors only in the foreground.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|