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.
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.
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.
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.
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.