Was trying to set some form of this for most of my damage formulae
(a.atk + (a.atk - b.def)) / 2
Was inspired by Yandly's Armor Scaling plugin
http://yanfly.moe/2015/11/28/yep-33-armor-scaling/ But figured I could do the basic part on my own without another plugin.
It works. Now. For hours I was testing and adjusting and try new formulae. Because this one wouldn't work. Then I noticed that I had forgotten a bracket. Instead of this:
(a.atk + (a.atk - b.def)) / 2
I had put this:
(a.atk + (a.atk - b.def) / 2
Which always left me with 0 damage. Yeah, almost busted my brain on that but managed.
Anyway, if anyone wants a good damage formula for standard attacks, then this works well (the working one with two brackets ((see in bold at the top). It allows defense builds to at least be dealt some damage, means lower attacks are not completely useless, and helps retain balance throughout most of the game/project. I've found it to be very useful
x