Checking if all enemies are Dead Troop Events

● ARCHIVED · READ-ONLY
Started by MrPurpleDreadlocks 6 posts View original ↗
  1. I am using Yanfly's Base Troop Events.

    I am wondering if they're is a way to script call check to see if all  monsters in any troop are dead.

    is there a command like $game_troop.alive?
  2. you can probably use


    $game_troop.members.all? {|member| !member.alive?}


    this will return true if all members of the troop is dead


    Though AFAIK, if all enemies die, it will stop the processing of battle and proceed with battle victory so the event might not even run.
  3. Ah so I would need to grab Tsukihime's End Phase Trigger then?

    Also thanks for the quick reply!
  4. IDK what that script does, so I cannot answer that question.
  5. ah, yeah you'd probably need that