Changing battle message text color

Status
Not open for further replies.

Raen Andaleio

Veteran
Veteran
Joined
Aug 3, 2014
Messages
99
Reaction score
18
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
39,144
Reaction score
12,417
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
99
Reaction score
18
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
39,144
Reaction score
12,417
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
99
Reaction score
18
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
39,144
Reaction score
12,417
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
99
Reaction score
18
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
39,144
Reaction score
12,417
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 Posts

Latest Profile Posts

The more I think about it, the weirdest part of going to work post-virus will probably be getting used to seeing my coworkers' mouths again. :LZYshock:
I think one of my weirdest realizations is that my speed of game development would probably be about the same if I *didn't* work a full-time manual labor job.
Quick question, what's the best way to capture-er, I mean RECRUIT playtesters? Should I make a project thread and use that?
Node Graph out of Date. Rebuilding...
Does anyone know of any good Discord groups for art or biology discussion, that sort of thing?

Forum statistics

Threads
98,056
Messages
948,947
Members
129,334
Latest member
cartcurt
Top