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

Discussion in 'RPG Maker VX Ace' started by jjbones123, Oct 1, 2016.

  1. jjbones123

    jjbones123 Veteran Veteran

    Messages:
    54
    Likes Received:
    29
    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??
     
    #1
  2. Rinobi

    Rinobi Veteran Veteran

    Messages:
    569
    Likes Received:
    212
    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
     
    #2
    jjbones123 likes this.
  3. Andar

    Andar Veteran Veteran

    Messages:
    28,637
    Likes Received:
    6,578
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    either change the color numbers like said above, or change the assigned colors in the windowskin picture
     
    #3
    jjbones123 likes this.
  4. jjbones123

    jjbones123 Veteran Veteran

    Messages:
    54
    Likes Received:
    29
    First Language:
    English
    Primarily Uses:
    N/A
    Thanks! this worked, had to remove the Yanfly script for it to work though.
     
    #4
  5. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,970
    Likes Received:
    10,663
    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.
     
    #5
    jjbones123 likes this.
  6. jjbones123

    jjbones123 Veteran Veteran

    Messages:
    54
    Likes Received:
    29
    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.  
     
    #6
  7. Yo Ewan

    Yo Ewan Veteran Veteran

    Messages:
    35
    Likes Received:
    2
    First Language:
    English
    The Yanfly Message core adds this option, I think.
     
    #7

Share This Page