View Single Post
  #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