Condition that checks if 4 party members are alive

Koulucky

Veteran
Veteran
Joined
Jan 25, 2016
Messages
68
Reaction score
31
First Language
English
Primarily Uses
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.
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
697
Reaction score
216
First Language
Vietnamese
Primarily Uses
RMMV
Should 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.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
682
Reaction score
446
First Language
English
Primarily Uses
RMVXA
That's for MV. For Ace, you want $game_party.members.size or $game_party.battle_members.size.
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
697
Reaction score
216
First Language
Vietnamese
Primarily Uses
RMMV
Oh sorry my bad. MV has always been sticking in my mind these days lol
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
682
Reaction score
446
First Language
English
Primarily Uses
RMVXA
And sorry, I missed the bit about them being alive. You want $game_party.alive_members.size.
 

Koulucky

Veteran
Veteran
Joined
Jan 25, 2016
Messages
68
Reaction score
31
First Language
English
Primarily Uses
@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!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top