View Single Post
  #9  
Old 12-03-2006, 07:49 AM
Idrox0 Idrox0 is offline
Registered User
Join Date: Oct 2003
Posts: 66
Idrox0 is on a distinguished road
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 View Post
Wow, that's pretty inefficient.
I second that.
__________________
Reply With Quote