How would you do this? I'm hoping to just change the color of all of the text coming out of the battle log, is there a line of code I can use or something? Thanks.
MZ How can you change the color of the battle log window text?
Javascript/Plugin SupportYou can use text codes in the battle log if I recall correctly, so it's technically not that difficult, but the messages are scattered around a number of different places.
There may be a few others that I've missed. It's slightly more difficult in MV as well.
Of course, you could also use a plugin to automatically add the colour code to every message.
- The messages for each skill.
- The messages for each state.
- Various messages in the Terms tab. I believe everything from "Use Item" down is a battle log message.
There may be a few others that I've missed. It's slightly more difficult in MV as well.
Of course, you could also use a plugin to automatically add the colour code to every message.
@Solar_Flare Is there not an easier way to add the color to the whole window in the code somewhere?
I suppose one way would be to override
Replace 5 with whatever colour code you prefer.
There's probably also a way that doesn't use colour codes and directly sets the colour on the window itself. I don't know if that's better.
Window_BattleLog.prototype.addText. Maybe something like this?
JavaScript:
(function(old) {
Window_BattleLog.prototype.addText = function(text) {
old.call(this, '\\C[5]' + text);
};
})(Window_BattleLog.prototype.addText);
Replace 5 with whatever colour code you prefer.
There's probably also a way that doesn't use colour codes and directly sets the colour on the window itself. I don't know if that's better.
Hmmm, in the above there's a spelling mistake Window.BattleLog should probably be Window_BattleLog
I think you can also change the colors (also outline) in this method for the window:
I think you can also change the colors (also outline) in this method for the window:
Window_BattleLog.prototype.resetTextColor = function() { // this.changeTextColor(ColorManager.normalColor()); // this.changeOutlineColor(ColorManager.outlineColor()); this.changeTextColor(ColorManager.textColor(27)); this.changeOutlineColor(ColorManager.textColor(28));};Original thread: https://forums.rpgmakerweb.com/threads/how-can-you-change-the-color-of-the-battle-log-window-text.182225/