Changing battle message text color

Status
Not open for further replies.

Raen Andaleio

Veteran
Veteran
Joined
Aug 3, 2014
Messages
109
Reaction score
22
First Language
German
Primarily Uses
Hello everyone,

I have a problem concerning text color, maybe someone has a solution to that.
I replaced the original message boxes with my own design. Looks just fine, but since it's brighter than the original, the white text with black outline didn't look that good on it.

Removing the outline was simple, that's just one line of code, but now the text was white only and rather hard to read.
Since I didn't know how to change the color of the interface text and was too lazy to add \c[...] to each dialog box, I simply swapped black and white in the Window.png file.
This worked just fine, and it looks good. However, the battle messages are now rather hard to read (see attached image).
So basically, I need to change the battle message text color back to white. And maybe increase the opacity of the text backgrounds a bit, so it stays readable on lighter backgrounds.
Does anyone know how to do that?

Regards

~Raen

battle-messages.png
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Add this to a new script slot:

Code:
class Window_Battlelog < Window_Selectable  def reset_font_settings    super    change_color(text_color(15))  endend
If that doesn't work, see which tile in your windowskin has the white color (top left is 0, not 1) and use that instead of 15.
 

Raen Andaleio

Veteran
Veteran
Joined
Aug 3, 2014
Messages
109
Reaction score
22
First Language
German
Primarily Uses
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Add this to a new script slot:

class Window_Battlelog < Window_Selectable def reset_font_settings super change_color(text_color(15)) endendIf that doesn't work, see which tile in your windowskin has the white color (top left is 0, not 1) and use that instead of 15.
Sorry about the wrong thread.

Sadly your script doesn't seem to do anything. I copy-pasted it into a new script under Materials, like it's usually recommended for custom scripts. However, the color of the battle messages doesn't change. Am I doing something wrong?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Did you do this?

If that doesn't work, see which tile in your windowskin has the white color (top left is 0, not 1) and use that instead of 15.
Did you put it BELOW any other scripts you imported?


Do you have any other battle scripts that you imported?
 

Raen Andaleio

Veteran
Veteran
Joined
Aug 3, 2014
Messages
109
Reaction score
22
First Language
German
Primarily Uses
Did you do this?

Did you put it BELOW any other scripts you imported?

Do you have any other battle scripts that you imported?
15 is the right number, that's where my white is. I did try different numbers to see if that changes the color, but nothing.

It is currently below all other imported scripts.

The only other battle script I use is RBS ADD-ON (Battleback Manager), but that doesn't modify the battle interface. It just allows me to give each region on a map a different battle background. I also have a script that allows me to change the opacity of the interface panels, but it doesn't seem to have any methods that manipulate the text.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Ah, I made a typo.

It's Window_BattleLog (capital L), not Window_Battlelog.

Try this:

Code:
class Window_BattleLog < Window_Selectable  def reset_font_settings    super    change_color(text_color(15))  endend
 

Raen Andaleio

Veteran
Veteran
Joined
Aug 3, 2014
Messages
109
Reaction score
22
First Language
German
Primarily Uses
Ah, I made a typo.

It's Window_BattleLog (capital L), not Window_Battlelog.

Try this:

class Window_BattleLog < Window_Selectable def reset_font_settings super change_color(text_color(15)) endend
Aaah, yes, now it's working.

Meanwhile I found out that back_opacity holds the value controlling the opacity of the battle message text's background. So changing that works, too.

Thanks a lot for your help, Shaz!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top