Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
  #2  
Old 12-04-2006, 06:50 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Idrox0 View Post
I second that.
As inneficient as it is may read to you guys its probably the best bet.

Come up with something, and time test it, and revise, until it works. No one makes anything perfect the first time they try, it can always be improved or changed later. Eventually it will work well and youll go from there, if you had any doubt about that, i do notice Zodiac is actually on the classic list, so its got to work somehow.
Reply With Quote
  #3  
Old 12-04-2006, 08:48 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I think I found a good algorithm

HTML Code:
Damage = int(WeaponWeight^.75 + ((Strength * Power) /2));
__________________

Last edited by Chompy; 12-04-2006 at 09:07 PM..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.