How to change all text in a game from white to black?

jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
I know you can do  \C[number of the color you want] to turn the text from white to black, but to do that for every text box seems tedious.


How can I change it so that the game uses black text by default? Is there an option or do I have to change some script??
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
Well, these are the text colors used by default.


You could change to first one to 15 (I think that's black).

Code:
#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This is a super class of all windows within the game.
#==============================================================================
class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Overwrite Methods: Get Text Colors
  #--------------------------------------------------------------------------
  def normal_color;      text_color(0);   end;    # Normal
  def system_color;      text_color(16);  end;    # System
  def crisis_color;      text_color(17);  end;    # Crisis
  def knockout_color;    text_color(18);  end;    # Knock out
  def gauge_back_color;  text_color(19);  end;    # Gauge background
  def hp_gauge_color1;   text_color(20);  end;    # HP gauge 1
  def hp_gauge_color2;   text_color(21);  end;    # HP gauge 2
  def mp_gauge_color1;   text_color(22);  end;    # MP gauge 1
  def mp_gauge_color2;   text_color(23);  end;    # MP gauge 2
  def mp_cost_color;     text_color(23);  end;    # TP cost
  def power_up_color;    text_color(24);  end;    # Equipment power up
  def power_down_color;  text_color(25);  end;    # Equipment power down
  def tp_gauge_color1;   text_color(28);  end;    # TP gauge 1
  def tp_gauge_color2;   text_color(29);  end;    # TP gauge 2
  def tp_cost_color;     text_color(29);  end;    # TP cost
end
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
either change the color numbers like said above, or change the assigned colors in the windowskin picture
 

jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
Well, these are the text colors used by default.


You could change to first one to 15 (I think that's black).



#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
# This is a super class of all windows within the game.
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# * Overwrite Methods: Get Text Colors
#--------------------------------------------------------------------------
def normal_color; text_color(0); end; # Normal
def system_color; text_color(16); end; # System
def crisis_color; text_color(17); end; # Crisis
def knockout_color; text_color(18); end; # Knock out
def gauge_back_color; text_color(19); end; # Gauge background
def hp_gauge_color1; text_color(20); end; # HP gauge 1
def hp_gauge_color2; text_color(21); end; # HP gauge 2
def mp_gauge_color1; text_color(22); end; # MP gauge 1
def mp_gauge_color2; text_color(23); end; # MP gauge 2
def mp_cost_color; text_color(23); end; # TP cost
def power_up_color; text_color(24); end; # Equipment power up
def power_down_color; text_color(25); end; # Equipment power down
def tp_gauge_color1; text_color(28); end; # TP gauge 1
def tp_gauge_color2; text_color(29); end; # TP gauge 2
def tp_cost_color; text_color(29); end; # TP cost
end
Thanks! this worked, had to remove the Yanfly script for it to work though.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@jjbones123 Please don't quote whole posts to indicate who you are replying to, it makes scrolling down the page slow and is especially difficult for people who are accessing this on their phone.  If you want to make it clear who you are answering, just use the @username convention as I have done on this post.


You didn't mention in your OP that you were using a script.  I am guessing that the Yanfly script you are referring to is the Ace Core Engine script.  That overwrites the default scripts in a number of places, including font colour.  If you want to keep that script (and it does a lot more than just affect the text), then you can change the colour there.  The section is this, starting at around line 234:


# - System Text Colours -
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Sometimes the system text colours are boring as just orange for HP, blue
# for MP, and green for TP. Change the values here. Each number corresponds
# to the colour index of the Window.png skin found in Graphics\System.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
COLOURS ={
# :text => ID
:normal => 0, # Default: 0
:system => 16, # Default: 16
:crisis => 17, # Default: 17
:knockout => 18, # Default: 18
:gauge_back => 19, # Default: 19
:hp_gauge1 => 28, # Default: 20
:hp_gauge2 => 29, # Default: 21
:mp_gauge1 => 22, # Default: 22
:mp_gauge2 => 23, # Default: 23
:mp_cost => 23, # Default: 23
:power_up => 24, # Default: 24
:power_down => 25, # Default: 25
:tp_gauge1 => 10, # Default: 28
:tp_gauge2 => 2, # Default: 29
:tp_cost => 2, # Default: 29
} # Do not remove this.


You can change the colour 0 in the same way as Rinobi suggested.
 

jjbones123

Veteran
Veteran
Joined
Aug 2, 2016
Messages
54
Reaction score
31
First Language
English
Primarily Uses
N/A
@ksjp17 Sorry, still new to all this. Slipped my mind that you could @ users, so I quoted them to know that I was replying to them. But you're right; I should just use the @ and will do in future/

As for the mention of Yanfly, I just found it weird that it wasn't working for the project I was making, but when I tried it with a brand new project it worked just fine. I removed the custom scripts one by one to see which one was preventing it and it turned out to be yanfly. Though in hindsight; it isn't really that relevant.  
 

Yo Ewan

Veteran
Veteran
Joined
Mar 30, 2016
Messages
35
Reaction score
2
First Language
English
Primarily Uses
I know you can do  \C[number of the color you want] to turn the text from white to black, but to do that for every text box seems tedious.


How can I change it so that the game uses black text by default? Is there an option or do I have to change some script??
The Yanfly Message core adds this option, I think.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top