I like this one.
NPC Code:
Attack = Power + Random(int(Power/8));
M = int(Strength * Level / 128) + 2;
Defense = OpponentsDefenseFactor;
Damage = (Attack - Defense) * M;
Such is the 'Swords' damage formula of Final Fantasy V. You could also use this one (which would only really be accurate for blunt weapons):
NPC Code:
Damage = int(WeaponWeight^2 / Strength);
Quote:
Originally Posted by jake13jake
Wow, that's pretty inefficient.
|
I second that.