r/howdidtheycodeit • u/MkfShard • Jul 11 '22
Question Stat scaling?
So far in my projects I've mostly tried to sidestep stats, or reduce them to simple multipliers because I didn't fully understand them, but now I'm working on a project where progressing in power gradually and exponentionally is the entire point, so I need to learn:
How exactly do scaling stats work?
To clarify, I mean in RPG situations where you have various statistics that determine your health, attack, defense, etc, and also the degree to which those are influenced and varied (min damage/max damage) by things like passive abilities and equipment.
Setting this up, and having it be balanced between the player and NPCs (for example, not having damage completely overpower health unless there's a proportional power disparity) seems completely opaque to me.
View all comments
Show parent comment
2
u/Haha71687 Jul 11 '22
What are your thoughts on additive damage models? That is, where armor/DR is additive/subtractive rather than multiplicitive.
For example, the simplest model might be
A system like this would enable certain mechanics to just "fall out" of the math. For instance, consider two weapons and two enemies.
Rifle kills Grunt and Trooper in 4 shots. Shotgun kills Grunt in 2 shots, but takes 5 to take down the Trooper.
The fact that the rifle is more effective vs armor just falls out of the math.