Enemy Skill which deals more damage the more enemies there are

The title says it all - I want to make a skill which does more damage when the enemy is supported by a few mates than when the enemy is alone.


I'm not sure where to start, so thanks for any help.
Heyey,


it's easily done:


x * $gameTroop.aliveMembers().length


for all living enemies


x * $gameTroop.deadMembers().length


for all dead enemies


x * $gameTroop.members().length


for all enemies (dead and alive)


x is your amount of damage it will deal befor the multiplying


~flipy
Glad to see that I'm not the only one with skill ideas like this.  I've asked this before, apparently the solution is to use this somewhere in your damage formula.


$gameTroop.aliveMembers().length

Original thread: https://forums.rpgmakerweb.com/threads/enemy-skill-which-deals-more-damage-the-more-enemies-there-are.55389/