Sub topic 6
Limiting Verbs with Costs and Cooldowns
Assume you understand a basic game loop or turn structure and can read simple programming examples. This chapter focuses on how resource costs and cooldowns shape player decisions. They should make a verb interesting to use, not merely prevent the player from using it.
Why limit a verb?
A verb is an action the player chooses, such as jump, grab, or throw. A limit creates a reason to choose when and where to use that action.
Two common limits are:
- A resource cost removes something from a limited pool, such as stamina, ammunition, cards, or action points.
- A cooldown requires the player to wait before using the verb again.
Without limits, a powerful verb may solve every problem. With excessive limits, the verb may feel unusable. The design goal is a useful tension: using the verb now should help, but may reduce future options.
| Limit | What it controls | Typical player question |
|---|---|---|
| Resource cost | How many times the verb can be used | “Can I afford this?” |
| Cooldown | How often the verb can be repeated | “Should I use this now?” |
| Both | Frequency and total availability | “Is this worth spending and waiting for?” |
Specifying the precondition
A precondition is a condition that must be true before a verb can start. For a stamina-based verb, the precondition might be:
stamina >= stamina_cost and time_since_last_use >= cooldown
Keep the checks separate from the outcome. This makes the rule easier to test and lets the interface explain why a verb is unavailable.
from dataclasses import dataclass
@dataclass(frozen=True)
class Verb:
name: str
stamina_cost: int
cooldown: float
def can_use(verb, stamina, now, last_used):
last = last_used.get(verb.name, float("-inf"))
off_cooldown = now - last >= verb.cooldown
has_stamina = stamina >= verb.stamina_cost
return off_cooldown and has_stamina
jump = Verb("jump", stamina_cost=10, cooldown=0.2)
stamina = 25
last_used = {}
print(can_use(jump, stamina, now=0.0, last_used=last_used)) # True
last_used["jump"] = 0.0
print(can_use(jump, stamina, now=0.1, last_used=last_used)) # FalseThe example only checks availability. A complete game would also subtract the cost and record the use time after the action succeeds. Do this at one authoritative point, such as an action resolver. Otherwise, different systems may subtract stamina twice or start different cooldown timers.
Choosing costs and cooldowns
Set the cost according to the decision you want. A small cost can encourage careful planning without interrupting the core loop. A large cost can reserve the verb for emergencies or major commitments.
A cooldown is useful when repeating an action too quickly would remove timing or positioning decisions. For example, a dodge cooldown can prevent constant invulnerability. A throw cooldown can make the player consider whether to spend the throw on the current target.
Avoid limits that only create waiting. If the player has no useful action during a cooldown, the game feels stalled. Give the player another verb, movement option, or planning task while the timer runs.
Combining limits with feedback
Players need to know why a verb failed. Show the current resource and communicate the remaining cooldown through a timer, icon change, sound, or animation. Use different feedback for different causes:
- “Need 10 stamina” identifies a resource problem.
- “Ready in 0.3 seconds” identifies a timing problem.
- A blocked target or invalid position identifies a world-state problem.
This distinction helps players adapt instead of guessing.
Testing meaningful limits
Record each verb in a table during playtests. Note how often players use it, why they use it, and what they do when it is unavailable. A verb that is always saved may cost too much. A verb that is always repeated may need a stronger trade-off or a more interesting target.
Exercise
A dash costs 20 stamina, the player has 30 stamina, and the dash cooldown is two seconds. The player can already walk safely around the obstacle. What design question should you test before changing the numbers?
Show answer
Test whether the dash creates a meaningful advantage, such as escaping danger or reaching a valuable position. If it does not, changing the cost or cooldown will not solve the underlying problem.