Alright so I've come up with a formula for all my skills so that I can dictate which skill deals more or less damage based on what they do. But regardless of that it still finished as 0 damage.
(100+((a.lvl/4)*(a.atk/10))*0.8)-(b.def/8)
The 0.8 is my variable for each skill. For some skills it might be 1.2 and others it might be 0.5.
This is based on a level 80 character with 450 attack. The mob has 800 defense.
(100 + ((80 / 4) x (450 / 10)) x Variable) - (800 / 8)
(100 + (20 x 45)) x 0.8) - 100
((100 + 900) x 0.8) - 100
(1000 x 0.8) - 100
800 - 100
700
I'm sure I did something wrong here, I just can't see it.
*edit* Initial problem of Zero damage is fixed, but now the skill deals only 144 damage rather than the 700 I would expect it to. No variance, no crits.
(100+((a.level/4)*(a.atk/10))*0.8)-(b.def/8)
*edit 2* Fixed the calculation.
Found out my 144 damage instead of 700 was due to Yanfly's Armor Scaling plugin.
http://yanfly.moe/tools/armorscalingcalculator/
Thanks to bgillisp for the help! 😀
(100+((a.lvl/4)*(a.atk/10))*0.8)-(b.def/8)
The 0.8 is my variable for each skill. For some skills it might be 1.2 and others it might be 0.5.
This is based on a level 80 character with 450 attack. The mob has 800 defense.
(100 + ((80 / 4) x (450 / 10)) x Variable) - (800 / 8)
(100 + (20 x 45)) x 0.8) - 100
((100 + 900) x 0.8) - 100
(1000 x 0.8) - 100
800 - 100
700
I'm sure I did something wrong here, I just can't see it.
*edit* Initial problem of Zero damage is fixed, but now the skill deals only 144 damage rather than the 700 I would expect it to. No variance, no crits.
(100+((a.level/4)*(a.atk/10))*0.8)-(b.def/8)
*edit 2* Fixed the calculation.
Found out my 144 damage instead of 700 was due to Yanfly's Armor Scaling plugin.
http://yanfly.moe/tools/armorscalingcalculator/
Thanks to bgillisp for the help! 😀