HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Putting A Heroes Dmg. Into a Variable?

03-06-2008, 02:35 AM#1
Salbrismind
I sure this has probably been done before. But I was wondering what is the general consensus on the best methods or the fastest way to do it. My first thought was to try and roughly calculate the max and min dmg then just randomize a value between. So any ideas?

If this is the preferred method, then can someone help with exactly how to do that. I mean I know the primary attr. adds 1 dmg per point but what else effects damage?
03-06-2008, 02:40 AM#2
Rising_Dusk
Quote:
My first thought was to try and roughly calculate the max and min dmg then just randomize a value between.
This works, of course, but there is no real true method to getting a unit's current damage. If you were a clever coder, you'd use a BonusMod style system to monitor all bonus damage units ever get, and therefore you'd just add that number to a randomized number between a unit's min and max damages. (The latter calculated exactly as you state, base damage +1 per stat, unless you changed constants to be otherwise)