Max party member join to my party

Hi, I have characters that can join to you just chatting, but I want to put a limit of the party members numbers since I don't want 4 characters on my engine, so if the ammount of members is reached a "Party full" message would pop up.

Is there an optimal way to do it? I don't want to use something sub optimal as conditional branches for each possible character.
Unless you're using a plugin, the player can't add members to your party unless you give them a way to.

So, on any event that COULD add a member to your party, you just check how many are there already, and if the maximum has been reached, don't let them add another - or give them the option to remove one.

Control Variables > Game Data > Other > Party Size

will set a variable to the number of actors currently in the party.
Woah, that was simpler than I thought. Thank you. I'll do that.

Original thread: https://forums.rpgmakerweb.com/threads/max-party-member-join-to-my-party.140737/