Need Help Changing Battle Window Size

Hey all,


In my game there can be only 3 party members and I'm trying to shrink the battle menus to reflect this. The battle status menu by default has 4 rows for 4 party members and I can't seem to change this to 3. I figured out where to change the main menu status rows to 3 so only 3 members show up there without a big blank spot on the 4th row and I tried changing the similar line of code in the battle menu area of the rpg_windows but I'm not having any success. I don't have any background with JavaScript so sorry if this is a really simple question.


Attached is a picture of what I'm trying to do. I want all the windows at the bottom of the battle screen to have their height adjusted from the red marker to the blue marker. I'm sure this is an easy change to the rpg_window code but I'm not having any luck. Any help would be greatly appreciated.


Thanks


battlewindow.png
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
For the command window, look at my signature.
Thanks Victor, that's really close to solving my issue. I'm currently getting a " TypeError: Cannot read property 'iconIndex' of null " whenever a party member has a state added to it. I also need the Fight/Escape and the following Attack/Skill/Escape window height reduced to match the new 3 line actor window. I don't know if this can be done with your plugin or if I need to edit the rpg_window code.
Solved the issue. Yanfly's Battle Engine Core plugin was overwriting the changes to the rpg_window code I was making. Then I discovered what I was trying to do could be done with Yanfly's plugin.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-changing-battle-window-size.60871/