r/howdidtheycodeit • • 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.

44 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/Haha71687 Jul 11 '22

This is for a co-op real-time roguelite shooter. We plan on having healing and regeneration, so a fight either ends up in one side dead, or it effectively "resets" if somehow it ends without someone dying (one side flees). Ammo is infinite, so there's really no attrition on either side.

Also in addition to armor, we're planning a shield mechanic which behaves almost the opposite. It can block X instances of damage per X amount of time (like FTL), so many small instances are proportionally stronger vs shields.

Your buckler talk gives me an idea about regenerating armor. The setting is sci-fi, and we already have 3 tech flavors (human (uses ammo, discretely reloads), hybrid(uses power, continuously regens), alien(generates heat, continuously cools and behaves differently at high heat) so maybe that's our 3 defense flavors (armor, ???, shields).