I am creating a simple pvp game where players have physical attack, physical defense, magic attack, magic defense, speed, intelligence, and luck. I can't figure out a good formula for calculation of damage though. The max for the above stats is 99, while max health will depend on the results of damage calculation. Anybody have any ideas?