Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] changing text to black

Started by mitoz, July 22, 2007, 03:05:50 AM

0 Members and 1 Guest are viewing this topic.

mitoz

hello i need a little help with editing a script. im kinda new to scripting and im trying to change an AMS script's text color to black permanetly.

i have learned about those codes that can make it black temporarily but it seems like a hastle to keep putting in the code over and over again so can anyone help me make the text black? it seems kinda simple.

i need to know what i should change in the script

tSwitch

#1
I think you need to change the system's normal color, I'll take a look, hld on

edit: normal_color is in Window_Base...

anyways, if you want all the text in the game to be Black, open up a new script above main, below the AMS
and put this script in


class Window_Base
  def normal_color
    return Color.new(255, 255, 255, 255)
  end
end


and that will make all the text displayed in the game black
(well the text in menu boxes and such)

if you only want it to work with messages (i.e. not the title screen etc..), I'll have to take a look at the AMS


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

mitoz

alright i tried that but it didnt seem to work. i think that the problem may be bacause of one of my other scripts. i am going to start a new project and check

tSwitch

put that directly above main, i.e. the last custom script

edit: oops
forgot to change the numbers XD



class Window_Base
  def normal_color
    return Color.new(0, 0, 0, 255)
  end
end


there
put THAT one in the seperate code


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

mitoz

ok i tried that. it didnt work but i fixed the problem by editing the window-base by changing one of the sets of numbers to (0, 0, 0, 255) and using \c in a message to make it permanent.

thank you for helping me   :)

tSwitch

yeah
I'm pretty sure I know why that didn't work, but I'm glad you were able to figure it out


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon