Pokemon style party system plugin?

Hey guys I'm having trouble with some coding for a really simple plugin, I've been poking around for the correct java phrasing's but nothings working so far. So basically what I'm trying to do is set up a plugin that allows for the a select number of characters in a party as view able(lets say 6), with everyone else in the party completely hidden an inacessible outside of the party switching menu I have in place.

At the moment I was using these lines, as a means to do that. It pretty much set, the viewable party, to the number of active battlers. But now I'm wanting it to exist independently.

Window_MenuStatus.prototype.maxItems = function() {
    return $gameParty.maxBattleMembers();
};


Someone wrote this code out for me some time ago, so I'm I'm trying to figure out how to read it, in order to alter it. Can anyone help me out, as to define the "prototype.maxItems" and how that relates focusing on the party members? My assumption is that the code basically reads "Max part members is = to max battle members." So what I'm trying to learn is how to make it read "Max party members = X value" Similar to pokemon, where they can have 6 party members, but 1-3 battle members.

Sorry if this is wordy! Thanks for any insight or help!
 
If you want to know the value of


$gameParty.maxBattleMembers();


just write out (dont forgot the "()")


console.log($gameParty.maxBattleMembers())


the value will be the max of the battle members, else if you forgot the "()" it will give the string code.


It's because the return function. So, for example


Function getValue() {
return 999;
}


if you did 


console.log(getValue())


it will give you "999" in the console.


So write this if you want the party members to 3


Window_MenuStatus.prototype.maxItems = function() {
return 3;
};


so if you write


console.log(this.maxItems())


it will return 3 instead of the max of the battle members.


Hope this helps you and achieve what you want.
Thanks so much! Very insightful and works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/pokemon-style-party-system-plugin.70429/