How Do I Limit Party Size?

Hello, everyone! I have a question regarding scripting and how I can alter the max size of the game's party.

Now, I tinkered a bit with Yanfly's Engine Ace - Party System script, but ultimately all it did was allow you to alter the number of party members that can be brought into a battle. However, I'm in particular need of being able to limit the overall party size to 5 party members. It may seem small, but I'm trying to create a game with approximately 35 potential party members which can be switched in and out at the player's "home base" after each mission.
Well, one of the main features of the system is that it allows you to change (battle) party members on the go which is why all members are in the "party"...

To do what you want, you might simply wanna event the party add/remove function... or simply disable the party menu while you're not on the home base (not tested but it might work)?
http://forums.rpgmakerweb.com/index.php?/topic/9202-guild-system-v12-demo/?hl=guild
If we assume that you are only changing the party via the event commands to change (add/remove) party members, then you can use Control Variables to set a variable to the party size (in Game Data > Other > Party Members), and then do a conditional branch to see whether the player has hit the maximum limit or not, and either add the new character to the party or show a message. You then don't need to resort to scripting at all.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-limit-party-size.19766/