Sub topic 8
Pricing Abilities with Expected Value
Assume you know basic game design terms such as stats, resources, abilities, and tiers. You should also be comfortable with simple arithmetic and short Python examples. This chapter uses a working model: an ability's cost should reflect the value it produces over a typical use, not only the size of its visible effect.
Start with expected value
Expected value is the average result of an uncertain event. For an ability, begin with the value of its effect, then adjust it for:
- Chance, the probability that the effect triggers or succeeds.
- Uptime, the fraction of the relevant time that the effect is active.
- Drawback, the value lost because of a penalty, restriction, or risk.
A simple model is:
ability power = effect value × chance × uptime − drawback
For example, suppose an ability deals an effect worth 10 points, has a 50% chance to trigger, remains active for its full duration, and has a drawback worth 1 point:
10 × 0.5 × 1 − 1 = 4
The result is an expected power of 4. This does not mean every use produces exactly 4 points. Some uses produce 10 points, some produce nothing, and the average approaches 4 over many uses.
def ability_power(effect_value, chance=1.0, uptime=1.0, drawback=0.0):
return effect_value * chance * uptime - drawback
power = ability_power(10, chance=0.5, drawback=1)
print(power) # 4.0Estimate the effect value
Translate each effect into the common currency used for your other content. A healing effect might be valued by restored health. A movement effect might be valued by the attacks it enables or avoids. A stun might be valued by the damage allies can deal while the target cannot act.
The same numerical effect can have different values in different contexts. Ten points of damage against a weak target may waste part of the effect. Ten points against a boss may be fully useful. Record the assumptions behind each estimate.
| Effect | Base value | Important assumption |
|---|---|---|
| 10 damage | 10 | Damage is applied to a valid target |
| 20 healing | 12 | The target would otherwise lose that health |
| 2-second stun | 15 | Allies can attack during the stun |
Adjust chance and uptime
Chance includes hit probability, activation probability, and conditional success. If an ability hits 80% of the time, use chance = 0.8.
Uptime measures how often a persistent effect matters. A shield active for 3 seconds during a 10-second relevant window has an initial uptime estimate of 0.3. Use a lower value when the shield often expires without absorbing damage.
Do not multiply by chance twice. If the effect value already represents average damage after misses, keep the chance at 1.0.
Subtract drawbacks and conditions
A drawback is valuable only when it meaningfully limits the ability. A self-stun, health cost, long cooldown, required resource, or restricted target can reduce expected power.
Conditions can be modeled as another probability. If an ability works only while the caster is below 30% health, estimate how often that state occurs and multiply by that probability. However, rare conditions may create burst power at exactly the moment it matters most, so their average value can understate their strategic value.
Convert power into cost
Once you estimate ability power, apply the cost curve used by the game. A linear curve may use cost = power × scale. A superlinear curve charges more for high-power abilities. Keep the ability model and the cost curve separate so you can change one without hiding errors in the other.
Exercise
An ability has an effect value of 18, a 75% success chance, 50% uptime, and a drawback worth 2. What is its expected power?
Show answer
18 × 0.75 × 0.5 − 2 = 4.75.