Sub topic 8
Combining Verbs for Emergent Options
This chapter assumes you know what a player verb is and how to specify one with a precondition, cost, cooldown, and outcome. It also assumes you have seen verb-object tables. Here you will learn how verbs combine so that a small set produces many options, and how to design that on purpose.
What a combination is
A verb combination is a case where the result of one verb changes what another verb can do. The player performs the verbs in sequence, or at the same time, and gets an outcome that neither verb gives alone.
An emergent option is an option the player can use that you did not write as its own feature. It appears because the rules of two or more verbs interact. Your game has no "climb a stack of crates" verb, but grab, throw, and jump can still produce that behavior.
The goal is to get many options from few verbs. Each new verb you add costs you teaching time, input space, and testing. A new combination between existing verbs costs much less.
Where combinations come from
Verbs do not combine by magic. Combinations come from shared state. When one verb changes a fact in the world and another verb reads that fact, the two are linked.
There are four common sources of that link.
| Source of the link | What the first verb changes | What the second verb reads | Example |
|---|---|---|---|
| Position | Where an object or the player is | Reach, height, line of sight | `throw` a crate under a ledge, then `jump` onto it |
| Object state | A property such as wet, burning, or held | A condition on the target | `grab` a torch, then use it on a wooden door |
| Resource | Stamina, ammo, or another pool | A cost check | A heavy `throw` leaves too little stamina to `jump` |
| Time | A cooldown or timer | An off-cooldown check | `jump` during the window before a door closes |
If two verbs share no state, they cannot combine. This gives you a design check. When you want two verbs to work together, ask what shared fact links them. If you cannot name one, add it, or accept that the verbs are independent.
A worked example in code
The earlier verb-object table maps one verb and one target to an outcome. To support combinations, let outcomes change the world, so a later verb sees a different state.
The program below models a tiny room. A crate can be on the floor or stacked under a ledge, and the player's height decides whether jump reaches the ledge.
from dataclasses import dataclass
@dataclass(frozen=True)
class Verb:
name: str
stamina_cost: int
cooldown: float
VERBS = {
"grab": Verb("grab", 5, 0.5),
"throw": Verb("throw", 15, 1.0),
"jump": Verb("jump", 10, 0.2),
}
JUMP_HEIGHT = 2
LEDGE_HEIGHT = 3
def apply(verb_name, world):
verb = VERBS[verb_name]
if world["stamina"] < verb.stamina_cost:
return "too_tired"
world["stamina"] -= verb.stamina_cost
if verb_name == "grab" and world["crate"] == "floor":
world["crate"] = "held"
return "pick_up"
if verb_name == "throw" and world["crate"] == "held":
world["crate"] = "under_ledge"
return "launch"
if verb_name == "jump":
height = JUMP_HEIGHT
if world["crate"] == "under_ledge":
height += 1
return "reach_ledge" if height >= LEDGE_HEIGHT else "fall_short"
return "no_effect"
world = {"stamina": 40, "crate": "floor"}
print(apply("jump", world)) # fall_short
print(apply("grab", world)) # pick_up
print(apply("throw", world)) # launch
print(apply("jump", world)) # reach_ledge
print(world["stamina"]) # 0The first jump fails because the ledge is too high. The grab and throw verbs change the crate field. The second jump reads that field and succeeds. No verb is named "reach the ledge," yet the player can do it.
Look at the final stamina value. The player spent all 40 points, so the solution used exactly the budget available. That is a design lever, covered below.
The combination space
With n verbs, you can form n × n ordered pairs. The real number of working combinations is far smaller, because most pairs share no state. This is useful, since you can list the pairs and decide for each one whether it should work.
A pair table makes this concrete. Each cell holds what happens when the row verb is followed by the column verb.
| First verb → then | grab | throw | jump |
|---|---|---|---|
| grab | nothing new | launch held object | jump while carrying (slower) |
| throw | pick up what you threw | nothing new | jump onto the thrown object |
| jump | grab while airborne | throw from height | double jump (not allowed) |
Fill in every cell on purpose. A cell can say "works," "blocked," or "undefined." An undefined cell is the dangerous one, because the player will try it and the game will do whatever the code happens to do.
Designing combinations on purpose
Three techniques help you build combinations instead of hoping for them.
Make outcomes write to shared state
If a verb's outcome only plays an animation, nothing else can react to it. Give outcomes lasting effects on objects or the player. A thrown crate stays where it lands. A lit torch stays lit. Lasting state is what the next verb reads.
Use properties, not named pairs
Do not write a rule for every verb and object pair. Give objects properties, and let verbs act on properties. A torch has burning. A door has flammable. The rule "burning plus flammable causes fire" covers every flammable object, including ones you add later.
def use_on(source, target):
if source.get("burning") and target.get("flammable"):
target["burning"] = True
return "ignite"
return "no_effect"
torch = {"burning": True}
door = {"flammable": True}
crate = {"flammable": True}
stone = {}
print(use_on(torch, door)) # ignite
print(use_on(torch, crate)) # ignite
print(use_on(torch, stone)) # no_effect
print(door) # {'flammable': True, 'burning': True}Adding a flammable bridge later needs one new object and no new rule. This is the main economy of property-based design. The cost is that you must check every property pairing, because rules now apply broadly.
Let costs shape which combinations are affordable
A combination that costs 30 stamina in a game with 40 stamina is a real decision. A combination that costs 5 is free, and players will use it everywhere. Costs and cooldowns decide whether a combination is a core tactic, an occasional trick, or a rare finisher.
Combinations and the core loop
Combinations should feed the core loop instead of replacing it. The loop is the repeated cycle of verbs the player performs. A good combination gives the player a new route through that loop, or a faster one at a higher cost.
The diagram shows how two verbs plus shared state yield a third option.
Edge cases and failure modes
Emergent design gives players power, and some of that power you will not want. Plan for these problems.
- Degenerate strategies. One cheap combination beats every other approach, so players repeat it. Fix it with costs, cooldowns, or a counter-situation where the combination fails.
- Sequence breaking. A combination lets players skip content, such as stacking crates to reach a ledge the level expected them to reach with a key. Decide whether that is acceptable. If not, change the level geometry or add a blocker that the combination cannot beat.
- Combinatorial explosion in testing. Property-based rules multiply. With 10 properties, there are 45 unordered pairs to consider. Keep the property list short and review it as a table.
- Unreadable results. If a combination works but the player cannot tell why, they cannot repeat it on purpose. Give clear feedback for each state change, such as a visible burn mark or a sound when the crate lands.
- Order dependence.
grabthenthrowworks, butthrowthengrabmay not. Players will try both orders. Decide which orders are valid and signal the invalid one.
A short checklist
Use these questions when you review a verb set for combinations.
- For each pair of verbs, is there a shared state that links them?
- Does every verb outcome leave a lasting change that another verb can read?
- Are the rules written on properties, not on named pairs, where possible?
- Does each combination have a cost that matches how often you want it used?
- Is every cell of the pair table marked as works, blocked, or undefined?
- Can the player tell, from feedback, why a combination worked or failed?
Exercise
A game has the verbs push, jump, and grab. Pushing a barrel moves it one tile. A ledge is two tiles high and the player jumps one tile. Name the shared state that would let two verbs combine to reach the ledge, and describe the sequence. Then give one risk this combination creates.
Show answer
The shared state is the barrel's position and height. The player uses push to move the barrel next to the ledge, then uses jump onto the barrel (adding its one-tile height), then jump again to reach the two-tile ledge. The jump verb reads the barrel's position, which push changed. One risk is sequence breaking: players could push a barrel to reach areas the level intended to gate behind another item. Another valid risk is an undefined case, such as pushing the barrel into a corner where it can no longer be moved, which leaves the player stuck.
Exercise
You write a rule "torch ignites door" and another "torch ignites crate." Rewrite this as a property-based rule, and state one benefit and one cost of the change.
Show answer
Give the torch a burning property and give door and crate a flammable property. The single rule is: if the source is burning and the target is flammable, the target becomes burning. The benefit is that any future flammable object works with no new rule. The cost is that the rule applies broadly, so you must check every object with the property, such as a flammable bridge the player should not be able to burn early.