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
HollyC
Novice


Joined: 10 Apr 2003
Posts: 45
Location: USA

PostPosted: Wed Mar 24, 2004 3:56 am   

#cw command
 
I haven't been able to find a list of colors programmable through the #cw command, in the help files or the website tutorials. I won't ask anyone to post the whole list here if there's already one either in the help files or in the tutorial, but if there is, then where haven't I looked yet that I should be looking? *laugh*

I'd like to color certain output lines so that I will be more likely to spot and recognize them even when my screen starts to scroll ridiculously fast. However, I'd like to know what color each line is being made, BEFORE I assign the color code-numbers. I haven't been able to find the list of what number corresponds to what color. Where is this list?

Holly
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Mar 24, 2004 6:39 am   
 
Easiest way would be to use color names

From the helpfile for #CW (Ver 7.04)

Supports numeric values generated with the %color function, desciptive values including those listed in the %colorname function, and RGB values in hexadecimal format preceded by a $.

#SAY %color(HI,CYAN) returns 56 etc etc etc

And from a file linked from that helpfile

black 0
blue 1
green 2
cyan 3
red 4
magenta 5
brown 6
gray 7
yellow 14
white 15
hi 8
bold 128
under 256
blink 512
rev 1024
Foreground is 0-15, background is 0-7*16
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Wed Mar 24, 2004 7:48 am   
 
there is also a list of more colors that do work on %colorname or %colorword... i forget which it is
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Mar 24, 2004 6:20 pm   
 
There is no need to use numbers. They don't give any advantage. When these commands were originally introduced, they only worked with numbers and it was necessary to figure out what number matched the desired attributes and colors. That's no longer the case, which is why the conversions are no longer listed. Just use the colornames and attributes, all of which are listed under %color.

Many other colors, which won't convert to the old number system, are also now supported by name. These are listed under %colorname.

Oddly enough, both %color and %colorname are mentioned (and linked) in the helpfile nexela quoted. It's almost like the author wanted us to know where to look for the information! [^]
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