As the title says, I'm curious what a formula like this would look like.
The idea is that for each dead party member in battle_party (aka, nobody in reserve), this attack gets more powerful the more dead allies you have.
If you want to make something like that, you can use variables in the formula.
For Example,
Take some random variable. Let's say variable ID 12.
Set it to 1 as default.
Make a parallel common event that adds 1 to the variable whenever an ally dies and subtracts 1 when an ally is revived.
Variables are used like this in a formula: v[ID]. ID - index of the variable.
So you could have a skill that gets stronger the higher variable is.
Thus, the formula can be:
a.atk * v[12] * 2 - b.def * 3
Now, whenever one ally is dead, the attack doubles.
When two allies are dead, it triples.
When three allies are dead, it quadruples.
And so on.
Hope this helped you out.