I've been curious about how you pull off a check to see if everyone in the party (active or reserve, it doesn't matter) has full HP or MP.
[Solved] Way to check if entire party is at full HP/MP, etc.
RPG Maker VXAce Support
Code:
$game_party.all_members.collect {|actor| actor.hp / actor.mhp}.all? {|ratio| ratio == 1.0}
returns true if everyone's HP matches their max HP.
Very nice. That was a pretty quick answer, too.
That can be shortened and simplified to:
Ruby:
$game_party.all_members.all? { |actor| actor.hp == actor.mhp }
Original thread: https://forums.rpgmakerweb.com/threads/solved-way-to-check-if-entire-party-is-at-full-hp-mp-etc.147732/