I am trying to make a skill that inflicts a random status ailment on every enemy. I tried using doing so using the damage formula and succeeded, but, for some unexplained reason, it also stopped all the enemies from taking any damage at all afterwards.
To fix this, I decided to create a common event that uses a randomized variable to inflict a different state on enemies 1-8. While this did not have the immortal enemies problem, it inflicted multiple states on the same enemy if there fewer than eight enemies left in the troop. this makes the skill ridiculously overpowered when used on smaller troops and bosses.
Does anyone know how to make a conditional branch that only runs if there are a more than a certain number of enemies left in a troop? To my mind, I imagine it being something along the lines of:
If: Script: $gameTroop.aliveMembers() >== n
To fix this, I decided to create a common event that uses a randomized variable to inflict a different state on enemies 1-8. While this did not have the immortal enemies problem, it inflicted multiple states on the same enemy if there fewer than eight enemies left in the troop. this makes the skill ridiculously overpowered when used on smaller troops and bosses.
Does anyone know how to make a conditional branch that only runs if there are a more than a certain number of enemies left in a troop? To my mind, I imagine it being something along the lines of:
If: Script: $gameTroop.aliveMembers() >== n