Sub topic 7
Combining Several Stats into One Power Score
This chapter assumes you know basic game design terms such as stats, resources, abilities, and tiers. It also assumes you can read short Python examples and do simple arithmetic.
A unit usually has several stats. A knight might have health, attack, armor, and speed. To compare that knight with an archer, you need a shared measuring system. A power score is an estimate of total strength expressed in a common currency.
The score is useful for setting costs, assigning tiers, and finding suspicious designs. It is not a complete prediction of match performance. Positioning, counters, player skill, and team composition can change the result.
Assigning values to stats
Start by giving each stat a value in the same currency. For example:
| Stat | Value per point | Reason |
|---|---|---|
| Attack | 2.0 | Damage usually creates direct combat value |
| Health | 0.5 | Health improves survival but does not deal damage |
| Speed | 3.0 | Mobility can enable attacks and escapes |
These values are design assumptions. They should come from rules analysis, simulation, and playtests rather than intuition alone.
A weighted sum combines the stats:
STAT_VALUE = {"attack": 2.0, "health": 0.5, "speed": 3.0}
def raw_power(stats):
return sum(STAT_VALUE[name] * amount for name, amount in stats.items())
archer = {"attack": 4, "health": 10, "speed": 1}
print(raw_power(archer)) # 16.0The archer scores 16 power: 8 from attack, 5 from health, and 3 from speed.
Normalize stats before valuing them
Stats often use different units. Health may range from 1 to 1,000, while speed may range from 1 to 10. Multiplying both raw numbers by weights can make the larger-looking unit dominate.
One solution is normalization, which converts a stat into a comparable scale. For example, divide health by a reference value:
- 100 health becomes 1.0 health units.
- 50 health becomes 0.5 health units.
- 200 health becomes 2.0 health units.
Then apply the currency value to the normalized amount. Choose reference values from the intended content range, not from an extreme outlier.
Add modifiers for special rules
A raw sum misses important effects. A ranged attack may be worth more than the same attack at melee range. Armor may be more valuable against some enemies than others. Add explicit modifiers instead of hiding these effects inside arbitrary stat weights.
For example, calculate a base score first, then add a range bonus or subtract a weakness penalty. Keep each adjustment visible so designers can audit it.
Watch for interactions
Stats can create synergy, where their combined value is greater than the sum of their separate values. High speed and high attack may let a unit repeatedly choose favorable fights. High health and healing may produce unusual durability.
You can represent a known interaction with a bonus:
def unit_power(stats):
score = raw_power(stats)
if stats.get("health", 0) >= 20 and stats.get("speed", 0) >= 2:
score += 4 # durability plus mobility breakpoint
return scoreA breakpoint is a threshold where a rule changes sharply. For example, 20 health might allow a unit to survive one extra hit. Such thresholds make a smooth weighted sum inaccurate. Record them as conditional bonuses, penalties, or separate rule checks.
Common errors include:
- Treating the score as an exact balance result.
- Valuing every stat independently when stats interact.
- Using raw values with incompatible units.
- Letting one exceptional unit determine all stat values.
- Ignoring context, such as enemy type or map size.
Use the score to create a first cost estimate. Then compare units with similar roles, test them in representative scenarios, and revise the weights when the evidence disagrees.
Exercise
A unit has 6 attack, 20 health, and 2 speed. Using the values attack = 2.0, health = 0.5, and speed = 3.0, what is its raw power before modifiers?
Show answer
6 × 2.0 + 20 × 0.5 + 2 × 3.0 = 12 + 10 + 6 = 28.