Sub topic 2
Separate Inputs, Calculations, and Outputs
Assume you know basic spreadsheet navigation, arithmetic, and percentages, and that you understand the game system you are balancing. This chapter shows how to structure a balance workbook so that changing a design parameter does not require hunting through formulas.
A maintainable spreadsheet has three layers:
- Inputs contain values you choose, such as weapon damage, enemy health, or upgrade cost.
- Calculations transform inputs into results, such as time to kill or total upgrade cost.
- Outputs present the results in a form that supports a balance decision.
Keep these layers separate. A formula should usually read from input cells or other calculations. It should not contain unexplained constants such as 37 or 0.18 when those values represent design choices.
Create a clear workbook structure
You can use separate sheets or clearly separated sections on one sheet. Separate sheets work well for larger models:
| Sheet | Purpose | Example contents |
|---|---|---|
| Inputs | Editable design parameters | Attack power, enemy health, attack speed |
| Calculations | Formulas and intermediate values | Damage per hit, hits needed, time to kill |
| Outputs | Decision-ready summaries | Difficulty comparison, pacing chart, target status |
Name cells or use consistent cell references when your spreadsheet supports them. Names such as PlayerAttack, EnemyDefense, and HitsPerSecond communicate more than references such as B7, C12, and D4.
A simple dependency flow looks like this:
Design the Inputs sheet
Put one parameter on each row. Include a description, value, unit, and source or assumption.
| Parameter | Value | Unit | Notes |
|---|---|---|---|
| Player attack power | 25 | damage | Level 1 weapon |
| Enemy defense | 8 | damage reduction | Standard enemy |
| Enemy health | 120 | health points | Standard enemy |
| Hits per second | 1.5 | hits/second | Average attack rate |
Use consistent units. If one attack rate is measured in hits per second and another is measured in seconds per attack, formulas can silently produce incorrect results.
Build the Calculations sheet
Create one row per entity or scenario. Refer to inputs rather than copying their values into formulas.
For example, if AttackPower, Defense, TargetHealth, and HitsPerSecond are named inputs, calculate damage per hit and time to defeat the target with:
=MAX(1, AttackPower - Defense)This enforces a minimum damage of one. Then calculate the whole number of seconds required:
=CEILING(TargetHealth / DamagePerHit / HitsPerSecond, 1)Intermediate columns make the model easier to inspect:
- Damage per hit
- Hits required
- Attacks per second
- Time to kill
- Remaining health after the final hit
Avoid hiding several unrelated operations inside one long formula. Intermediate values help you find whether a surprising result comes from defense, rounding, attack rate, or health.
Build decision-ready Outputs
Outputs should answer balance questions directly. Examples include:
- Does the standard enemy survive between three and five seconds?
- Does the next weapon upgrade reduce time to kill by the intended amount?
- Does a stronger build remain effective without making weaker builds unusable?
Link output cells to calculations. Do not manually type result values into the summary. Add conditional formatting or status columns such as Within target and Outside target, but keep the underlying numbers visible.
Exercise
Why should a balance workbook avoid placing a design constant directly inside a formula?
Show answer
A direct constant hides the assumption and makes revisions error-prone. Store the value in the Inputs layer, label it, and reference that cell from the calculation.