Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-30-2006, 05:36 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
Battle Algorithm

Well, I am making a battle system, but I am not necessary good at algorithms,
I'm trying to find an algorithm to control the damage, the only algorithm I made, which I thought was good, was this. Well, I hate math, but I know its useful

PHP Code:
speed 0.42;
weight 5;
damage 3;
(
speed 0.05) + weight damage + (speed 4)
/* its suppose to be weaker if the speed is low, since you don't got power,
also its suppose to control if the weight is lower-> lower damage
(higher speed and weight = higher damage)
but I wanted to make it, if the speed is too high,
its suppose to make it lower, if its too slow,
well I am not good at algorithms
*/ 
Also, if you would like to help me with my battle system, someone could post algorithms, ideas, suggestions on a good algorithm etc..?

Btw, I am interested to get someone to help me make good algorithms (or learn me how to make better ones), if anyone is interested in teaching me, pm me or leave a post here
__________________
Reply With Quote
 


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:44 AM.


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