ID:153452
 
I was wondering what would be the best way to code in the equations for when you attack someone the damage you do.

I thought of:
"(AttackerStrength + AttackerWeaponStrength) - (DefendersDefense + DefendesArmorStrength)"
But it doesnt seem to be all that exciting. Any suggestions?

Thanks,
Daniel
Try the DnD system, it works pritty good. Its kinda complicated, buy a book or search the net. My friend has like 6 DnD book, for everything from player classes to atlases.
In response to Scoobert
Make sure you mulitply the damage with a sertain random var so you dont hit the same damage all the time.

Define theres random numbers in the begin of the calulation so you can ajust em later on and dont have to search where they are used in the code. This might be usefull when you find out your monsters or players are to strong in genaral.

Anyways, just use you mind, what would be of any influence when you would go hit the boy next door? (and plz dont try out! n_n) What item you use, maybe his protection, your speed, your power, the wind, the place where you hit. ect ect.

You can always use battle systems of other games, like mentioned in the other reply DnD or for explane ragnarok.
(look on internet, dont have any links srry)

Good luck,
Greetz Fint