Some of my single-target skills have an "if target.hp<=0" to play a special animation if they take down a battler. I'm unsure how to translate this into an all-target skill.
Check if entire party/troop is at 0 HP in a whole action sequence?
RPG Maker MV SupportSo you want a single animation to play if the entire troop is dead? Or for the skill to play an animation on each target it kills?
I dont think You'd have to do anything different from what you've done for the latter, but for the former you can try using using
!user.opponentsUnit().allMembers().some(member => member.hp > 0)
as your if condition to play the animation
I dont think You'd have to do anything different from what you've done for the latter, but for the former you can try using using
!user.opponentsUnit().allMembers().some(member => member.hp > 0)
as your if condition to play the animation
Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/check-if-entire-party-troop-is-at-0-hp-in-a-whole-action-sequence.171669/