Text borders in battle

Greetings. In the battle screen, any text is displayed in the top in a semi-transprent, borderless window.
I'm interested in instead changing this to a solid bordered window like every other text box in the game for consistency sake.
Can this be easily edited in the base engine?
What you're referring to is Window_Battlelog
If you do not have any scripts that will allow you to modify this then go to Window_BattleLog
under initialize set to self.opacity = 255
and under max_line_number set the number of lines you want. Default is 2 in battle but the setting is 6.
That will not give the window a border though - that's the windowskin, which is not used by the battle-log.
@Shaz Does this mean we're having a disagreement?
border.PNG

This was done in a project with no scripts.
That's interesting - I didn't think the battle log used the windowskin. Is it visible during the entire battle, even when there's nothing happening (like during the action choices)?
Yes visible always with these settings.
That will not give the window a border though - that's the windowskin, which is not used by the battle-log.

The battle log actually uses the windowskin file but the windowskin was not visible because the opacity of the window was set to 0 by default. This is also why the battle log window only seem to "appear" when a text is displayed

If you set it to 255 as Roninator2 said, you will see that the battle log is actually always there for the whole battle and have a height enough to show 6 lines of text
Yes visible always with these settings.
Dang, no way to have it only on when displaying text without a secondary script? I have my battle options up there.
Essentially I want it to just function the same as the regular battle status window, but it doesn't look like I'll be able to do that with editing a few parameters in the default script.
I managed to show the log window when something happens and hide it when the text disappears by using @log_window.show and @log_window.hide.

@log_window.show goes in Scene_Battle > Execute Battle Actions line 575 and @log_window.hide in Scene_Battle > Processing at End of Action line 567. I also put @log_window.hide line 15 at Scene_Battle > Start Processing and got rid of the black log background by commenting out create_back_sprite in Window_BattleLog > Init line 19. Works like a charm for me.

Edit: I forgot another bit, you need to comment out dispose_back_sprite in Window_BattleLog line 28, the game will crash if it tries to delete a sprite that doesn't exist at the end of the battle.
I managed to show the log window when something happens and hide it when the text disappears by using @log_window.show and @log_window.hide.

@log_window.show goes in Scene_Battle > Execute Battle Actions line 575 and @log_window.hide in Scene_Battle > Processing at End of Action line 567. I also put @log_window.hide line 15 at Scene_Battle > Start Processing and got rid of the black log background by commenting out create_back_sprite in Window_BattleLog > Init line 19. Works like a charm for me.

Edit: I forgot another bit, you need to comment out dispose_back_sprite in Window_BattleLog line 28, the game will crash if it tries to delete a sprite that doesn't exist at the end of the battle.
Interesting. When I followed this I get a bizarre result. The window only displays before any actions are taken, and then disappears and the battle log (text included) is just completely nonexistent until the battle ends. Perhaps my script that controls the layout of the battle is interfering?
Yes, it's not quite right. Good job on figuring out the show and hide part.

In Scene_Battle the @log_window.hide needs to be in two spots.
create_all_windows - put after line169 put just before the end
turn_end - should now be line 503 put just before the end.

@log_window.show needs to be in one spot
turn_start - put after line 489 just before the end

I tested this and it does what you were asking. Shows for messages and disappears the rest of the time.
Yes, it's not quite right. Good job on figuring out the show and hide part.

In Scene_Battle the @log_window.hide needs to be in two spots.
create_all_windows - put after line169 put just before the end
turn_end - should now be line 503 put just before the end.

@log_window.show needs to be in one spot
turn_start - put after line 489 just before the end

I tested this and it does what you were asking. Shows for messages and disappears the rest of the time.
Wow! It works perfectly! The only quip is it continues to be there during the results screen (I'm using Yanfly's Victory Aftermath script), but that's very minor. Thanks a lot for your help. I knew it had to be possible in the default script.
@Alarkus Took a little bit to find the right spot
In the victory aftermath script put @log_window.close on line 1148
@Alarkus Took a little bit to find the right spot
In the victory aftermath script put @log_window.close on line 1148
Wow! You really went above and beyond to help me! Thank you so much.
Thanks for the corrections, I only took into account basic battle actions, eh.

I think a better way to do it would be to alias the edited functions in a new entry on the script database to avoid compatibility issues, especially if you're using a custom battle engine
Yes, there will be variations as these settings do not work for me in my game, but a default game works fine.

Original thread: https://forums.rpgmakerweb.com/threads/text-borders-in-battle.80357/