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?
Checking if all enemies are Dead Troop Events
● ARCHIVED · READ-ONLY
-
-
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. -
Ah so I would need to grab Tsukihime's End Phase Trigger then?
Also thanks for the quick reply! -
IDK what that script does, so I cannot answer that question.
-
Here's a link! http://himeworks.com/2013/03/end-phase-triggers/
-
ah, yeah you'd probably need that