I'm trying to make a skill that applies a certain state to one enemy then apply another state to all enemies. The first part is easy and obvious but for the second part I'm trying to use Yanfly's Skill Core and do an <After Eval> to apply the state to all enemies. I've tried:
$gameTroop.members().each {|a| a.add_state(24)}
$gameTroop.aliveMembers().every(function(member.add_state(24)))
$gameTroop.members().add_state(24)
$gameTroop.alive_members.all.add_state(24)
$gameTroop.battle_members().all.add_state(24)
None of these have worked. Simply put, what is the script call to apply a state to all enemies?
$gameTroop.members().each {|a| a.add_state(24)}
$gameTroop.aliveMembers().every(function(member.add_state(24)))
$gameTroop.members().add_state(24)
$gameTroop.alive_members.all.add_state(24)
$gameTroop.battle_members().all.add_state(24)
None of these have worked. Simply put, what is the script call to apply a state to all enemies?