[A83] help!


[Prev][Next][Index][Thread]

[A83] help!




I have a question. How do I do a equation like this, I will use it in a battle engine in an RPG. The problem is that all the numbers are 16-bit. In this example I use the players strenght and attack values to define a damage:

(PLAYER STRENGHT / 2) + (PLAYER ATTACK) + (int rand(PLAYER ATTACK+1 > PLAYER ATTACK / 3)

thanks
Alex 




_________________________________________________________
FreeBox - The World's Finest Web Mail Solution
Get your own FREE email account at http://www.freebox.com