Set up formulas for attacks and such... for the game I'm making I want to set up these stats
Strength
Magic Skill
Defense
Magic Defense
I need to know how to set up formulas for something like someone with 10 strength attacking someone with 5 defense and etc.... I also need to know how to set up spells
|
||||||||||||||||||||||||||||
Blah Blah Blah
var/DAMAGE = usr.Strength - M.Defense
if(DAMAGE > 0) M.HP -= DAMAGE