Hex Color Codes in Messages
#1
Hex Color Codes in Messages
by RPG Advocate
saved from Phylomortis.Com


Introduction
This script allows you to enter a six-character hex value when using the "\c" control code in messages, while still allowing you to use the numbered reference colors (\c[0[ - \c[7]) by default). To do this, use the \c control code as normal, but within the brackets, put the character "x" followed by the hex code. For instance, the syntax for red would be \c[xFF0000]. Be careful, though. If you enter a hex string that isn't six characters long, white text will be used. If you enter a malformed string, such as \c[D49], then reference color 0 will be used. Note that letters for hex values A-F must be capital letters.

To use this script, replace the parts of Window_Message shown in the first spoiler (the first part replaces a single statement and the second part replaces a block, as shown in the comments). Then, add the second part (in the second spoiler) that adds the hex_color and hex_convert methods into Window_Base. This script will work with my Custom Text Command script.


Script

Hex Code (part 1)

Hex Code (part 2)
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Event Messages & Tail Indicator ParaDog 0 4,636 03-04-2008, 04:44 AM
Last Post: ParaDog



Users browsing this thread: 1 Guest(s)