Full Party Formation

AndromusRpg

Villager
Member
Joined
Mar 8, 2019
Messages
10
Reaction score
3
First Language
English
Primarily Uses
RMMV
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.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
$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
 

AndromusRpg

Villager
Member
Joined
Mar 8, 2019
Messages
10
Reaction score
3
First Language
English
Primarily Uses
RMMV
$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!
 

AndromusRpg

Villager
Member
Joined
Mar 8, 2019
Messages
10
Reaction score
3
First Language
English
Primarily Uses
RMMV
I did it really quick and it's working 100%

Thanks a million I super appreciate this
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
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
 

AndromusRpg

Villager
Member
Joined
Mar 8, 2019
Messages
10
Reaction score
3
First Language
English
Primarily Uses
RMMV
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top