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
Jdawg
Newbie


Joined: 17 Jan 2002
Posts: 5
Location: Sweden

PostPosted: Tue Mar 26, 2002 11:30 am   

colors
 
On another note, can someone give me some kind of mud color chart, for my color triggers?
I'm using Zmud 6.25 and playing Genesis LPmud.
Thanks a bunch.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Mar 27, 2002 1:55 am   
 
quote:

On another note, can someone give me some kind of mud color chart, for my color triggers?
I'm using Zmud 6.25 and playing Genesis LPmud.
Thanks a bunch.



For ZMud-native color codes:


black 0
blue 1
green 2
cyan 3
red 4
magenta 5
brown 6
light gray 7
dark gray 8
bright blue 9
bright green 10
bright cyan 11
bright red 12
bright magenta 13
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.

You also have MXP you can use to color text, via the color tag (which I believe uses the RGB value instead of referencing a color register, of which there are only 16). Haven't used it yet, so I have no idea of its reliability or syntax.

li'l shmoe of Dragon's Gate MUD
Reply with quote
dron
Newbie


Joined: 18 May 2002
Posts: 0
Location: Russia

PostPosted: Thu Apr 18, 2002 6:45 pm   
 
alright, I'm currently coding a log colorizing script in PHP, so I found this little list to be quite useful. Until I looked at my logs with the colors shown. It told me that ANSI 31 = Bright Blue. Which is obviously not what you listed. I was wondering if there's another char that needs to be used, or if there's some other problem. I'll probably just end up determining what each color in the MUD spits out in ANSI, and formulating my own chart.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Apr 18, 2002 7:30 pm   
 
Like Matt said, those are zMUD-native colors. ANSI control codes have their own set of numbers. You can search around the 'Net for these, they are easy to find, and they will be the same as your MUD uses since all MUDs must use standard ANSI codes, so that you will see the color.

Kjata
Reply with quote
dron
Newbie


Joined: 18 May 2002
Posts: 0
Location: Russia

PostPosted: Thu Apr 18, 2002 7:47 pm   
 
ahhhh, thanks :D

for anyone in the same boat as me, here's a list of ANSI control characters:

http://viking.delmar.edu/Courses/CIS415L/ANSIsys.htm
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