The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: mitoz on July 22, 2007, 03:05:50 AM

Title: [RESOLVED] changing text to black
Post by: mitoz on July 22, 2007, 03:05:50 AM
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
Title: Re: [request] changing text to black
Post by: tSwitch on July 22, 2007, 03:22:05 AM
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
Title: Re: [request] changing text to black
Post by: mitoz on July 22, 2007, 04:06:39 AM
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
Title: Re: [request] changing text to black
Post by: tSwitch on July 22, 2007, 04:12:30 AM
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
Title: Re: [request] changing text to black
Post by: mitoz on July 22, 2007, 04:25:27 AM
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   :)
Title: Re: [RESOLVED] changing text to black
Post by: tSwitch on July 22, 2007, 02:13:32 PM
yeah
I'm pretty sure I know why that didn't work, but I'm glad you were able to figure it out