Conditional Branch: How many Party Members?

As I'm working on my game, I basically want to implement dialogue that varies based on how many party members


are present.


For example, I want to rest at an inn and if my Party leader is alone, he'll say


"I wish to stay for the night."


But if he has at least one party member with him, he'll say


"We wish to stay for the night."


I just simply need to know the script code to put in the conditional branch.


Thanks.
$gameParty.members().length
And where do I write the numeric value in?


Sorry if this is a dumb question.
@Black Noise


Use a control variable: script command and put what mrcopra provided inside.


You'll then be able to check the variable in a normal conditional.


You could also do a conditional : script with


$gameParty.members().length === 1
//or
$gameParty.members().length > 1


Edit: Ah yes, almost everytime someone mentions a script call I forget what can be done with the basic commands...


Game data > other > party members


Indeed no use for a script call.
You don't need to use the script command for this.  Control Variables already gives you the party size, under Game Data.
Thanks a lot.


This has really helped!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-how-many-party-members.64895/