Sub topic 3
Define and Organize Game Parameters
Assume you know basic spreadsheet navigation, arithmetic, percentages, and the game system you are balancing. This chapter focuses on the values your model uses, not on building complete combat or economy formulas.
A game parameter is a value that controls game behavior. Examples include player health, weapon damage, enemy armor, experience needed for a level, and the price of an upgrade. A well-organized parameter sheet makes these values easy to find, change, and verify.
Separate Parameters from Results
Keep values that designers choose separate from values the spreadsheet calculates. Chosen values are inputs. Calculated values are outputs or derived metrics.
For example, AttackPower is an input. DamagePerHit is a derived metric because it depends on attack power and defense. If you mix both in one large table, a calculated value can accidentally become a manual input.
Use separate areas or sheets:
Inputs: values designers can change.Calculations: formulas that transform inputs.Outputs: summaries, comparisons, and charts.Notes: definitions, assumptions, and data sources.
A small model might use these input columns:
| Parameter | Value | Unit | Type | Notes |
|---|---|---|---|---|
| Player health | 100 | hit points | Input | Starting health |
| Sword damage | 24 | damage | Input | Before defense |
| Enemy defense | 8 | damage reduction | Input | Applied per hit |
| Attack interval | 1.2 | seconds | Input | Time between attacks |
| Upgrade cost | 50 | coins | Input | First upgrade |
The unit column prevents ambiguous values. 1.2 could mean seconds, attacks per second, or a multiplier. Write the unit explicitly and use one convention consistently.
Define a Single Source of Truth
Each parameter should have one authoritative location. Other sheets should reference that location instead of repeating the value. If sword damage appears as 24 in three formulas, changing the weapon becomes error-prone.
Named ranges make formulas easier to read. For example, name cells AttackPower, Defense, and AttackInterval. Then a damage formula can express the rule directly:
=MAX(1, AttackPower - Defense)This formula guarantees at least one damage after defense. The minimum matters because a zero-damage attack can create an unintended infinite combat duration.
Record parameter metadata beside the value:
- Valid range, such as
0to500. - Default value.
- Whether the value is temporary or final.
- The system that consumes it.
- The reason for the current value.
- The last person or process that changed it.
Use Types and Constraints
Treat parameters as typed data even when the spreadsheet does not enforce types. A percentage, duration, count, and multiplier should not look interchangeable.
| Parameter type | Example | Constraint |
|---|---|---|
| Count | 3 lives | Whole number, at least 0 |
| Duration | 1.2 seconds | Greater than 0 |
| Percentage | 15% bonus | Between 0% and 100% |
| Multiplier | 1.25 speed | Usually greater than 0 |
Use data validation where possible. Restrict counts to whole numbers, percentages to valid ranges, and durations to positive values. Add warning columns for invalid states, such as a negative cost or an attack interval of zero.
Check Parameters Before Modeling
Before adding complex formulas, inspect the parameter sheet:
- Are all values labeled with units?
- Does every input have one source of truth?
- Are zero and negative values handled deliberately?
- Are percentages stored consistently as
15%rather than sometimes15? - Can another designer understand each value without asking you?
A clean parameter sheet is part of the model's documentation. It reduces formula errors and makes later scenario testing reliable.
Exercise
Your spreadsheet stores attack speed as both "2 attacks per second" and "0.5 seconds per attack." Which representation should be the authoritative input?
Show answer
Choose one representation, document its unit, and derive the other with a formula. Use attacks per second for rate-based calculations or seconds per attack for timing calculations, but do not manually maintain both.