After looking around for a good while, im not sure where else to put this.
im trying to make a formula for basic attacks that is just, eluding me, so bad.
basically what i want, is for the attackers attack, to never exceed their attack stat, so if they have 50atk, they can do, at most, 50dmg without a crit hit. Though I also want them to almost never be able to do 0 dmg even if the enemies defense is 5x higher than the attackers attack stat. I'd like it to work in some kind of percentile value, like, idk, if the attackers atk is the same as the defenders def, than the attacker does around 50% of their attack stat as dmg. but if the defenders def is twice the attackers atk, then the attacker only does like, idk, something around 20-30% of their atk stat, and if the defender is 3x higher than the atk, then it's even lower % of the attackers atk. On the flip side, if the atk is higher than def, obviously i want the percent higher, but i never want to exceed 100% of the attackers attack stat, and i just cannot seem to manage it x.x
is a formula for something like this even possible?
im trying to make a formula for basic attacks that is just, eluding me, so bad.
basically what i want, is for the attackers attack, to never exceed their attack stat, so if they have 50atk, they can do, at most, 50dmg without a crit hit. Though I also want them to almost never be able to do 0 dmg even if the enemies defense is 5x higher than the attackers attack stat. I'd like it to work in some kind of percentile value, like, idk, if the attackers atk is the same as the defenders def, than the attacker does around 50% of their attack stat as dmg. but if the defenders def is twice the attackers atk, then the attacker only does like, idk, something around 20-30% of their atk stat, and if the defender is 3x higher than the atk, then it's even lower % of the attackers atk. On the flip side, if the atk is higher than def, obviously i want the percent higher, but i never want to exceed 100% of the attackers attack stat, and i just cannot seem to manage it x.x
is a formula for something like this even possible?