Welcome to the Builder Academy

Question 256 Colors

  • Silvaria
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Writer, Builder, Artist, Newbie!Programmer
More
04 May 2013 00:37 #2095 by Silvaria
256 Colors was created by Silvaria
Okay, so I recently found this!

I knew from reading the Color helpfile that TBA supports Dark/Bright Orange and Pink, but I didn't think anything more of it until recently. When I read it again, it said "256 Support"... and that made me want to find the other 200 of them!!

I scoured the helpfiles, and there it was under my nose: OLC-COLOR.

While in OLC, color is handled through the '@' codes, but must be manually
converted to a tab through the following means:
> @RRed@n
> /t
(All @'s toggled into Tabs)
> /s
> /q

Usage:
x = [f:foreground or b:background]
RGB = is red, green, blue

Examples:
@[f500] = foreground full Red
@[f513] - Foreground color of Red-5, Green-1, and Blue-3
@[b315] - Background color of Red-3, Green-1, and Blue-5
All 256 Color combinations can be seen by "show colour".


Advanced Examples:
HELP CLASS = A basic MXP link for HELP CLASS
Rook = Creates a rook icon, or display the word Rook if the player's
client doesn't have that functionality

= Would play ouch.wav on an MXP/MSP capable client.
this is a menu link
= Sends an expandable pop-up menu, complete with mouse-over tool tip on an
MXP capable client.

tbamud.com/forum/4-development/167-3-63-...-and-information#167

See also: @, ANSI, PROMPT, TOGGLE, SHOW-COLOUR


It has very helpful information as to how to use color in the text editor, as well. C: But, most important to my search, it reveals the trick to using 256 colors!! We all know how to use normal colors, by using @ in conjunction with an upper- or lower-case letter (@RBright Red@n, for example), but more colors are available by using @ with a bracketed color-code! It's shown really well in the bold! :D

I found it super useful to make an image of the codes for quick and easy comparisons. If you have Mudlet, you can also select the color codes and copy the HTML from the client, then paste into a txt or html document. Save and close, and when you open it -- depending on your text editor -- the html should display the codes just as you see them in the MUD!

But here's a pic for you guys, attached below. And why not, have my text file, too!

ENJOY!! I've been so thrilled since I discovered them!!! :D

Began building in July, 2012.

Began learning C in July, 2013.

Downloaded ROM and TBAmud in August, 2013.

Conversion nearly complete.
Attachments:
The following user(s) said Thank You: rudeboyrave, Papaya Pete

Please Log in or Create an account to join the conversation.

More
04 May 2013 05:45 #2097 by Papaya Pete
Replied by Papaya Pete on topic 256 Colors
Hmmm. Color me impressed!

Heh... hehehe!

Seriously though, it can really lead to giving some more life and uniqueness to a description. I'll be sure to save this one for future reference.

Please Log in or Create an account to join the conversation.

More
04 May 2013 19:12 #2104 by Rumble
Replied by Rumble on topic 256 Colors
Thanks Silvaria, there are a lot of other new protocol options too with MXP. Clickable exits now, newbie zones that could have clickable commonds, stuff that would make MUDding via touchscreen (tablet or phone) much more viable.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

Please Log in or Create an account to join the conversation.

More
05 May 2013 03:38 #2113 by zusuk
Replied by zusuk on topic 256 Colors
Yeah you can add more 'letter shortcuts' to your color codes just by some easy modifications to the protocol.c file as well. That way instead of typing out the long Fxxxx code, you could make like the color jade the letter j: /tj or @j

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100

Please Log in or Create an account to join the conversation.

Time to create page: 0.457 seconds