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
sjleonard
Beginner


Joined: 10 Jun 2002
Posts: 23
Location: United Kingdom

PostPosted: Sun Aug 25, 2002 6:55 pm   

Colour tables/codes
 
]Hi,

I'm writing a fairly basic script to take in a player's name and compare it to a list of guilds (that part is fine). I'm sure this is fairly simple.

My problem is with matching colours. When a player sends me a 'tell' (no-location speech) my MUD converts it to blue (Mud-side setting that can be altered) however, it is much lighter than the very dark ansi blue.

How can I select a lighter ansi blue?

Here's an example of my code.

#sub {%ansi( white, bold)"[KODA]" %ansi( green) "%1 told "}


I hope that helps?

Stewart

Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Aug 25, 2002 8:00 pm   
 
quote:

ansi

Syntax: %ansi(fore,back)
Related: %color, #COLOR, #CW

return the ANSI codes for the given colors. You can also modify the fore and back attributes with the strings "bold" for bold font, "high" for highlighted colors, "blink" for blinking text, "under" for underlined text, and "rev" for reversed text.
Examples


#SHOW %ansi(high,red)Hello%ansi(blink,blue,white)Word



How about %ansi(high,blue) that the lighter blue you looking for that isn't cyan?

Ton Diening
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