Script to adjust the battle window to fit 5 chars.

I'm using the Yanfly Party System Script, which allows me to change the number of actors who can participate in battle, and its add-on Command Party, which allows me to change the participants of the battle during the battle. Now I can have 5 characters in battle, however, the character battle box (the one with chars names, HP, MP and TP bars and numbers) only fits 4 chars, making the data of the fifth one (name, HP, MP and TP bars and numbers) hidden.

I know that you can increase the player battle window by editing the Window BattleStatus default script, however, it reduces the size of the battlefield, and I'm using Victor Actors Battlers to create a sideview battle system, using 120x120 to 200x200 sprites to represent the actors, so to fit 5 chars with this dimensions, I must avoid increasing the battle box size to fit their names and parameters. So, please, can someone make a script that shows 5 chars in the battle box without changing the battle box size? It can be similar to the battle box in Yanfly Ace Battle Engine, and I would even use this script... if it wasn't incompatible with tons of other scripts that I use.
Please list what scripts you are using for battles.
Does any of them affect the status window?
So I need to know if you have a status windows that shows actor faces or sprites or something other than the default. And if so what is it?

Additionally have you increased the battle members to 5? there is a place in the code to change the battle members, like what yanfly party script does.

Now if you are using the default window width then you can increase your screen size and that will help.
Otherwise you need to alter the command window behavior so that it does not take space from the status window. Meaning, move the command window.
if you had the entire screen available for the actors portraits then you would either have
544 / 5 = 108.8
640 / 5 = 124

Yanfly Ace Battle Engine, and I would even use this script... if it wasn't incompatible with tons of other scripts that I use.
What are the errors? My current project uses yanfly battle engine and victor sant actor battlers.
I had to modify the yanfly script a bit to make them not yell at each other so it is possible to fix whatever the problem is.
Please list what scripts you are using for battles.
Does any of them affect the status window?
So I need to know if you have a status windows that shows actor faces or sprites or something other than the default. And if so what is it?

Additionally have you increased the battle members to 5? there is a place in the code to change the battle members, like what yanfly party script does.

Now if you are using the default window width then you can increase your screen size and that will help.
Otherwise you need to alter the command window behavior so that it does not take space from the status window. Meaning, move the command window.
if you had the entire screen available for the actors portraits then you would either have
544 / 5 = 108.8
640 / 5 = 124


What are the errors? My current project uses yanfly battle engine and victor sant actor battlers.
I had to modify the yanfly script a bit to make them not yell at each other so it is possible to fix whatever the problem is.
Scripts that affect battles, in this order:
Victor Engine - Basic Module
Change Battle background with a spell by Roninator2
Hime Enemy Reinforcements
CP Enemy Scan script
Hime Pre-Skill Effects
Final Fantasy Style Battle Log by William Couillard
Yanfly Engine Ace - Party System v1.08
Yanfly Engine Ace - Party System Add-On: Command Party v1.01
Victor Engine - Actors Battlers
Yanfly Engine Ace - Victory Aftermath v1.03
MOG - Battleback EX (v2.1)
MOG - Battle Cry (V1.4)
MOG - Battle Cursor (1.0)
MOG - DAMAGEPOPUP (v3.8)
MOG - Blitz Commands (v1.6)
Yanfly Engine Ace - Target Manager v1.03
FF5 "Mix" by Mr. Bubble
Aeon Party by Formar Fomar0153
Hime Battle Summons
Party Swap for Vehicle by Roninator2

None of them changes the default status window, so it remains the default.

I've already increased the battle members to 5 and the screen size to 640x480 proportions. Now I must make the battle status window fit the data of all 5 chars without changing the battle status window size.

Screenshot_1.png


This is the error that happens when I use the Ace battle engine. It appears only if I use buffs and debuffs. It also has a bug that makes the battle animations not appear. Removing "MOG Damage Popup" and changing the position of Yanfly battle engine does not fix it, and if you put the battle engine script below Victor actors battlers, the actors battlers sprites bugs, they will go below and screen, but I can avoid this error put ace battle engine above actor battlers script.

No changes made in Yanfly Ace Battle Engine, I'm using all default configs.
I would move the VS Basic down and the actor battlers down.

Yanfly Engine Ace - Party System v1.08
Yanfly Engine Ace - Party System Add-On: Command Party v1.01
Yanfly Engine Ace - Victory Aftermath v1.03
Yanfly Engine Ace - Target Manager v1.03
Victor Engine - Basic Module
Victor Engine - Actors Battlers
Hime Battle Summons
MOG - Battleback EX (v2.1)
MOG - Battle Cry (V1.4)
MOG - Battle Cursor (1.0)
MOG - DAMAGEPOPUP (v3.8)
MOG - Blitz Commands (v1.6)
FF5 "Mix" by Mr. Bubble
Aeon Party by Formar Fomar0153
Party Swap for Vehicle by Roninator2
Change Battle background with a spell by Roninator2
Hime Enemy Reinforcements
CP Enemy Scan script
Hime Pre-Skill Effects
Final Fantasy Style Battle Log by William Couillard

This looks right from memory. (based off my script order)

What version of Yanfly Battle engine do you have? 1.22 or 1.24?

You can also have Yanfly core, it's won't be a problem as long as it is above VS scripts.
My project has those similar scripts in this order

Other scripts
Yanfly Core
Yanfly Battle
Yanfly Party System
Yanfly Victory aftermath
Yanfly Target Manager
Other scripts
VS Basic
VS Animated Battlers
Other scripts
Luna Engine
Other scripts
VS Actor Battlers
a whole lot of other scripts.

Things I have changed (they may be a problem for you or maybe not, it would be best to get your scripts file for testing)
Yanfly Battle engine
Line 1542 Game_Actor
I commented out all methods except draw_mp? and draw_tp?

Line 1640 Game_Enemy
I commented out def sprite method

Line 2831 Scene_Battle
I edited the on_item_ok method

Line 3116
I commented out the show_animation line. I think was to do with my animated battlers

Line 3164
I commented out the method def refresh

This is the error that happens when I use the Ace battle engine. It appears only if I use buffs and debuffs.
This is likely due to MOG Damage Popups script. I do not have that in my project
Try disabling the script.
Select all lines in the script CTRL+A and press CTRL+Q, or add a blank line at the top and put in __END__
This will prevent the damage popup script from working and you can see if there are more problems.
I'm Using Yanfly Battle Engine v1.22, but I can't find the new version (1.24). The link from Yanfly blog is broken and the archeia repo in github only has the v1.22.
archeia repo in github only has the v1.22.
Actually it has the 1.24, it's just in the main folder. called Ace_Battle_Engine1.24Backup.rb
Just returning here to thank you, once again, always helpful. Everything works now.
Actually it has the 1.24, it's just in the main folder. called Ace_Battle_Engine1.24Backup.rb

Original thread: https://forums.rpgmakerweb.com/threads/script-to-adjust-the-battle-window-to-fit-5-chars.159936/