Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
coderguy
Newbie


Joined: 11 Aug 2004
Posts: 3

PostPosted: 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?
Reply with quote
SCORNME
Novice


Joined: 25 Jul 2004
Posts: 48
Location: aka Falan

PostPosted: Wed Aug 11, 2004 7:40 am   
 
Can you use %colorname?
Reply with quote
coderguy
Newbie


Joined: 11 Aug 2004
Posts: 3

PostPosted: 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.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
coderguy
Newbie


Joined: 11 Aug 2004
Posts: 3

PostPosted: 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!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net