|
Post by the dragon on Oct 10, 2004 12:22:49 GMT -5
i need a random damage battle system that can calculate damage according to levels and also put some randomness in the damages...
please help me...
This is especially for you ismavtar
|
|
|
Post by shad0w on Oct 11, 2004 3:19:05 GMT -5
here is a simple damage formula:
hp-=other.level/level*other.power*(random(0.2)+0.8)
note: other.power= strength of attack
hope this helps
|
|
|
Post by the dragon on Oct 11, 2004 5:19:57 GMT -5
thanks, shadow...
anybody else with other ideas?...
if anyone wants dragon ball z or pokemon sprites just ask and also mention your e-mail ID and i shall mail them to you.
examples will be credited and appreciated.
thanking everybody...
|
|
|
Post by megamushroom on Oct 23, 2004 12:02:50 GMT -5
heres the one i use:
return round(((player.str-(enemy.def/2))*atk_power)/10)+round(random(10))
|
|