Full Party Formation

I'm creating a game with 100's of playable actors.

What I don't know how to do is create a conditional branch to check if party formation (the list of members you can add to a party) is full.

I want 4 actors max in party, but need 8 actors max in formation slots.

My game is designed to ask anyone to join your party, but I want them to decline your offer to join, if your party formation is maxed out with 8 people.

Also, how do I max my party formation (not party size) at 8 people, I'm using yanflys partysystem.

I hope i'm being clear enough, and thanks in advance for any help.
$gameParty.members().length will return the number of actors currently joined (active battle slots + reserves), so an event mockup doing what you're describing might look something like this:

If : Script : $gameParty.members().length < 8
- [join dialog + add member events here]
Else
- [decline dialog here]
End
$gameParty.members().length will return the number of actors currently joined (active battle slots + reserves), so an event mockup doing what you're describing might look something like this:

If : Script : $gameParty.members().length < 8
- [join dialog + add member events here]
Else
- [decline dialog here]
End

Perfect, thank you so much, this looks like it should do the trick. I will try it out tomorrow as soon as I can. But I'm sure this is the script call I needed to evaluate. Thanks again!
I did it really quick and it's working 100%

Thanks a million I super appreciate this
Real quick, I wanted to add that it might be better to set a variable with the maximum party size allowed and reference that instead, so:

$gameParty.members().length < $gameVariables.value(1)

(Or whatever variable you want to use for it)

That way, if you decide you want to change the max size at some point, you can without having to go through a bunch of different event sequences
Real quick, I wanted to add that it might be better to set a variable with the maximum party size allowed and reference that instead, so:

$gameParty.members().length < $gameVariables.value(1)

(Or whatever variable you want to use for it)

That way, if you decide you want to change the max size at some point, you can without having to go through a bunch of different event sequences


I was even thinking about this last night, you're amazing thanks Aesica. Will be doing an upgradeable campsite for the party, with that I could start with 4 members max, upgrade 4 > 8 > 12 cap. Ooohhh ideas ideas haha... thank you so much for thinking ahead like that just for me. Mucho Appreciato

Original thread: https://forums.rpgmakerweb.com/threads/full-party-formation.106544/