Everything will behave the same, and most damage formulas will be: a.atk-b.def
What I'm wanting to do is make the Power stat reduce the enemy Defense stat, I just don't know how to work the numbers.
For example:
Actor has 40 attack and enemy has 25 defense. An attack will have this formula:
(a.atk*2-b.def)
Without the power stat kicking in, this would work out to about 55 damage.
With the power stat, you would effectively ignore some of the defense stat and up your damage a bit.
Think of it as a type of "armor penetration" stat.
I don't want it to be a flat number, but rather, to work in percentages, I'm just not too good with numbers to figure out a way to do this effectively.
Here are some examples I tried, but the numbers just aren't cutting it.
For this example, I'll use LUK to signify the POWER stat.
a.atk*4 - (b.def*2/((a.luk)+1))*2)
What the above formula is doing is taking the enemy defense stat, and multiplying it by 2. That number then gets divided by the actor LUK stat + 1. That whole number then gets multiplied by 2, resulting in the total enemy defense, which is then subtracted from the actor's attack stat.
Here are the results using A.ATK=40 and D.DEF=25
At 0 Luck: 60 damage dealt
At 1 Luck: 110 damage dealt
At 2 Luck: 126 damage dealt
At 3 Luck: 135 damage dealt
At 4 Luck: 140 damage dealt
At 5 Luck: 143 damage dealt
As you can see, as the amount of power goes up, so does the damage, but it's increasing VERY slowly.
This is probably the closest I've gotten, but I still feel as though I can make it better. Any suggestions?