MZ Need help in Battle Status Window

I want to hide the last 3 of 7 members of my party inside the battle status window, as well as disable targeting them (ally targeting) through the battle status window.

My idea is to set the Window_BattleStatus.prototype.maxCols to 4 and disable the down button as well as set up some if statements if the cursor is at the beginning and end of the battle status column.

My problem is I don't know what function to modify so that I can control the cursor of the Battle Status Window.

Also, is this a bad idea? Or is there a better way to do this? Thanks!

Edit: I'm embarrassed. Window_BattleStatus.prototype.maxItems solved my problem. Hope an admin can closed this thread as soon as possible.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-in-battle-status-window.149104/