ID:156536
 
I need a more advanced way to calculate, but i'm not sure how to start, for now, my calculation is:

var/damage = src.Str-M.Def
AnimeBeyond wrote:
I need a more advanced way to calculate, but i'm not sure how to start.

Calculating damage will vary from game to game and it also depends on what type of variables you are using. I'll provide you with a small example of how I calculate damage in my game.

For the attacker, I suggest taking into account the strength of the person, and the type of damage the weapon can cause. (If you want to get fancy, like me, you can allow the attacker to select an appendage to aim for. Certain appendages would obviously take more damage than others)



<font color = silver>TYPE | <font color = black>CRITICAL |<font color = white> Weapons
- - - - - - - - - - - - - - - - - - - - - - -
<font color = silver>Slash | <font color = black>Sever Limbs | <font color = white>Axe, Sword, Dagger

<font color = silver>Pierce | <font color = black>Organ Damage | <font color = white>Spear, Arrow

<font color = silver>Bludgeon | <font color = black>Break Bones | <font color = white>Mace, Hammer, Flail



For the defender, you would take into account their defense, the armor they are wearing, and the type of protection it has against the type of damage the weapon is causing.
var/damage = X * sqrt(src.Str / M.Def)