Making a Skill that does more damage based on alive party members....

a.atk * 6 + (a.agi * $gameParty.aliveMembers().length) - b.def * 2

This is my damage formula just wondering if there is anything wrong with it, feel like
I need something in the .aliveMembers()...
The formula is correct. I will say, if you have many skills that reuse the same formula, I would recommend simplifying it in the script, as so.

JavaScript:
Game_Interpreter.prototype.aliveParty = function() {
    return $gameParty.aliveMembers().length;
}

That way, you can just use this...

Code:
a.atk * 6 + a.agi * aliveParty() - b.def * 2

There are no arguments in the aliveMembers function, so nothing should be passed into it.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-that-does-more-damage-based-on-alive-party-members.174936/