Abilities that are more effective the more monsters you are fighting?

There is a character in my game who has a number of abilities that either increase in power or become more accurate depending on how many living enemies you are currently fighting.  For example...

8 alive enemies= 100% chance of success with a lot of power.

4 alive enemies= 50% chance of success with an okay amount of power.

1 alive enemies= 12.5% chance of success with little power.

I can't find a way to make this idea a reality though.  Can anyone help?
For amount of damage, you could simply add $gameTroop.aliveMembers().length as part of the damage formula. Check those function/property names - I don't have the scripts open at the moment so they're just off the top if my head and might be incorrect.


For accuracy / chance of success, you'd probably need something written.
For amount of damage, you could simply add $gameTroop.aliveMembers().length as part of the damage formula. Check those function/property names - I don't have the scripts open at the moment so they're just off the top if my head and might be incorrect.

For accuracy / chance of success, you'd probably need something written.
Cool, thanks!

By the way, is there a grand list out there for function/property names?  I feel a lot of my questions could be answered if I had access to something like that.

Original thread: https://forums.rpgmakerweb.com/threads/abilities-that-are-more-effective-the-more-monsters-you-are-fighting.54204/