Control Character Color Expansion 2014/10/12
Creator name: VIPArcher
Creator name: VIPArcher
Introduction
This script expands on control character for color over 31.
Instructions:
On line 16, you can add more colors by following color code format (R , G , B [,A ]),
For text event, type \c[32-35...] to change text color.
How to Use
Paste this script above Main.
Script link
https://raw.githubusercontent.com/ovate/VIPArcher-rggs3/main/VA_ColorExpansion
Code:
#==============================================================================
# ■ Control Character Color Expansion
# By :VIPArcher [email: [email hidden]]
# -- The script comes from http://rm.66rpg.com Please keep the information above.
# Feel free to use/ reprint
#==============================================================================
$VIPArcherScript ||= {};$VIPArcherScript[:textcolor] = 20141012
#--------------------------------------------------------------------------------
module VIPArcher
Text_Color = { #<-This line should not be deleted
#color number #color code(R , G , B [,A ]),
32 => Color.new(0 , 0 , 255,255),
33 => Color.new(0 , 255, 0 ),
34 => Color.new(255, 0 , 0 ),
35 => Color.new(233, 233, 233 )
#to continue, add here
};Text_Color.default = Color.new #<-This line should not be deleted
end
#--------------------------------------------------------------------------------
class Window_Base < Window
#--------------------------------------------------------------------------
# ● Get text color
# n : Text color number(0..31)
#--------------------------------------------------------------------------
alias vip_ex_text_color text_color
def text_color(n)
return VIPArcher::Text_Color[n] if n > 31
vip_ex_text_color(n)
end
end
Credit and Thanks: VIPArcher
Terms of Use- Free for commercial and non-commercial use.
License - MIT License: http://opensource.org/licenses/mit-license.php