Hello there! Is it possible to be a condition that checks if 4 party members are alive? I want if 4 or more party members are alive X dialogue to appear, but if less than 4 party members are alive X dialogue appears.
Condition that checks if 4 party members are alive
RGSS3 Script RequestsShould be "$gameParty.aliveMembers().length". This will return the number of alive members in your party (including reserved members).
If you wanna check Battle Members, it should be different.
If you wanna check Battle Members, it should be different.
That's for MV. For Ace, you want $game_party.members.size or $game_party.battle_members.size.
Oh sorry my bad. MV has always been sticking in my mind these days lol
And sorry, I missed the bit about them being alive. You want $game_party.alive_members.size.
@A-Moonless-Night It works, but it checks how many members ARE in the party, not how many of them are alive/dead.
EDIT: Nvm, didn't see your 2nd answer cuz I had the page open for a long time without refreshing. Thanks!
EDIT: Nvm, didn't see your 2nd answer cuz I had the page open for a long time without refreshing. Thanks!
Original thread: https://forums.rpgmakerweb.com/threads/condition-that-checks-if-4-party-members-are-alive.103883/