Sub topic 7
Model Damage, Survivability, and Time to Kill
Assume you know basic spreadsheet navigation, arithmetic, percentages, and the game system you are balancing. This chapter builds a combat model that turns combat rules into measurable outcomes. The main metric is time to kill, or TTK, which is the time an attacker needs to defeat a target.
Start with a clear combat model
Write the rules before writing formulas. Decide whether damage is reduced by armor, whether attacks can miss, and whether attack speed means hits per second or seconds between hits. A simple first model uses these parameters:
| Parameter | Example value | Meaning |
|---|---|---|
| AttackPower | 30 | Damage before defense |
| Defense | 12 | Target damage reduction |
| TargetHealth | 500 | Target starting health |
| HitsPerSecond | 1.5 | Attacks completed each second |
Keep these values on an Inputs sheet. Put formulas on a Calculations sheet and summary metrics on an Outputs sheet. This separation makes it easier to change assumptions without accidentally replacing a formula.
The basic damage rule is:
=MAX(1, AttackPower - Defense)MAX(1, ...) prevents an attack from dealing zero damage. If your game uses a different defense curve, replace the subtraction with that rule and keep the result in a separate cell named DamagePerHit.
For the example values, damage per hit is 18. The number of hits needed is 28, because 27 hits deal 486 damage and 28 hits deal 504.
Calculate time to kill
If attacks happen at a fixed rate, calculate TTK with:
=CEILING(TargetHealth / DamagePerHit / HitsPerSecond, 1)With the example values, this returns 19 seconds. The CEILING function rounds up because a target cannot be defeated by part of a hit.
This formula assumes the first attack occurs after one attack interval. If the game applies damage immediately at time zero, the timing may instead be:
=MAX(0, (HitsNeeded - 1) / HitsPerSecond)Use the timing rule that matches the actual game. A one-second difference is important when comparing short encounters.
Survivability uses the same structure from the defender's perspective. If the target receives 40 damage per second, its survival time against an attacker is:
=TargetHealth / IncomingDamagePerSecondFor attacks with cooldowns, damage-over-time effects, shields, healing, critical hits, or varying defenses, add one row per event or phase. Do not hide all behavior in one long formula before you have validated the simple case.
Inspect the model with scenarios
Create scenario columns for a normal enemy, an armored enemy, and a boss. Change one parameter at a time and compare damage per hit, hits needed, and TTK.
A useful sensitivity test changes Defense by 10 percent, then changes AttackPower by 10 percent. Compare the resulting TTK changes. Parameters that cause large changes deserve tighter design constraints and more playtesting.
Validate against expected behavior
Check known cases before trusting the chart:
- Defense equal to AttackPower still deals one damage.
- Zero or negative health does not produce a misleading positive TTK.
- Doubling HitsPerSecond approximately halves TTK.
- A target with twice the health requires twice as many hits when other inputs stay fixed.
- The spreadsheet matches a recorded combat example from the game.
Exercise
AttackPower is 25, Defense is 10, TargetHealth is 300, and HitsPerSecond is 2. What are DamagePerHit and TTK using the formulas in this chapter?
Show answer
DamagePerHit is 15. Hits needed are 20, so TTK is 10 seconds.