Occasions — what just happened, and the holds that stop play
An occasion is the thing that happened in the game, which a scene names
as its trigger (story.md § Triggers). A hold is a reason
the engine is not advancing play. In the Base Levels the story scenes say what each win hands the player and where it is used;
each level’s page lists the scenes it plays.
Holds
Four holds. A hold is a reason the engine is not advancing play, and there are four, each named:
| hold | active while | ended by |
|---|---|---|
aiming | the player has a charged aimed glitch selected, or a Point press is down (HOL-009) | the selected glitch’s fire, deselecting, the slot no longer charged, the level ending, or the last watcher detaching; for a press, its lift, the battle ending, or its watcher detaching |
curtain | an attached watcher has not acknowledged the current scene version | every watcher acknowledging |
story | a gating scene is pending | the scene reporting its outcome |
opening | a battle’s opening stands (pip sources § The opening) | fighting, its count ending, or the last watcher detaching |
Holds stop steps: the engine carries out a step, carrying out each station’s part, only while no hold is active. A standstill, an idle run of only waits that is not carried out, is no hold: it refuses no command (idle and clash § Idle runs). The command that ends the last hold carries out at once a step every screen has shown (player sessions § 4). The snapshot lists the active holds in that order, so a reconnecting client reads what holds the game rather than inferring it. With nobody watching, the curtain holds nothing, a battle starts with no opening, and a standing opening ends at the next tick.
One refusal rule. While a hold is active, the engine refuses every player command except the one that ends that hold — in town as in battle, for level selection, the stable, research, the hand, supply-bin requests, recall and glitch fires. The aiming hold and the opening are the exceptions: the aiming hold also admits a glitch fire, selecting another glitch, recall, the three point commands and the Point press, and the opening admits assigning, replacing and discarding a ticket, fill first, the focus, recall, opening a surface, the point commands and the Point press, but no glitch fire (HOL-004, HOL-010; point); every other hold refuses a glitch fire, selecting a glitch, recall, the point commands and the press. A command that ends any active hold runs under the others, so two holds never wait on each other: the curtain and a story scene are both down after a level ends, and either may be answered first, and FIGHT › ends the opening while a gating scene is owed. A refused command changes nothing. A scene owed under the aiming hold waits for its end (HOL-007). The aiming hold draws no veil, so the whole stage stays usable while the player aims on the board (power station § Aiming). A gating scene or the curtain cancels aiming.
No gap between holds. A hold set during a level takes effect before the next step, once the step that set it has finished at both stations. A step is never cut short, so a gating scene an idle run’s entries owe holds from the step after the run’s, once the whole run is carried out. When the command that ends one hold leaves a gating scene owed, the next hold is active before any step, so a scene and the gating scene its completion owes play under one continuous hold.
Occasions
One vocabulary. An occasion is the thing that happened, which a scene names as its trigger. Scenes name their trigger from one closed vocabulary, each occasion with its own closed set of qualifiers, and a trigger naming anything else fails its catalog at load. Every occasion is published vocabulary, so a pack naming one a deployed engine lacks waits for that engine.
The moment and the log. The nine story occasions
(story.md § Triggers) describe the moment the game stands in.
Every other occasion but the town’s four (below) is read off the live game’s
activity log, by one engine service, as each event is written. A plan’s board
plays its turns on a copy with a log of its own, so nothing it narrates is an
occasion. The log records what happened and the snapshot
records what is: a trigger comes from an event, and the bots it names are
found in the snapshot through the serials the event carries — the bot that
acted and the bot it acted on.
Owed until played. An event occasion is owed to the scenes it matches
whose prerequisites are met as it happens, and each stays owed until it plays;
a scene whose prerequisites refuse it waits for a later occasion. A gating one
holds the game at once; a non-gating one stays offered until it plays or the
level it was owed in ends. scene_complete matches the
moment the scene it names reports its outcome, so a gating scene on it follows
that scene with nothing played between them.
Levels. Every occasion that happens during a level takes an optional level: narrowing it to that level; level_start and battle_round require
one. LEVEL_START is logged once a level is built and before its first
step, naming the level.
Stations. An event occasion carries the station it happened at, and a
scene owed on one plays there, to that station’s crew. The combat occasions,
the board occasions and point_placed happen at the arena, and the shop’s
three at the shop. glitch_charged and power_wasted name the player’s bot whose turn paid
the power as their actor and happen at its station. glitch_fired happens
at the arena or the shop for a glitch acting on that board. During a level, scene_complete happens where the scene played; in town it has no station.
Every other occasion happens at no station and plays in town.
Owners. A qualifier naming a side — owner, source_owner, target_owner — reads the bot’s owner, player or opponent, never the side
it happens to be fighting on.
Town. surface_opened is the client’s report that the player has met one
of the six town buildings’ surfaces — the Imprinting Station, the Arena, the
Stable, the Workshop, the Salvage Yard, the Power Station — whether they
picked it or the town opened it for them; the report is refused for any other
name. idle_in_town matches once its seconds pass in town with nothing holding the
game and no player command, timed on the engine’s clock. Any command the hold
rule lets through restarts the count, a surface report included; time in a
level or under a hold never counts. bay_selected matches the player
selecting a bay at the imprinting station, and imprint_started the player
pressing the imprint key on the selected bay (story § The
imprinting station); each names the bay’s chassis as bot, which a trigger
naming either must name, and neither happens during a level. None of the four
has an event behind it: the engine hands each to the occasion service
directly, on the live game only.
| group | occasions |
|---|---|
| story | the nine story occasions, and scene_complete |
| combat | mod_fired, hit, buff_applied, buff_ended, exhausted, stamina_below, telegraph, thread_reset, terrain_damage, slam, supply_spent |
| Power Station | glitch_charged, glitch_fired, power_wasted |
| Point | point_placed |
| board | moved_into, switch_thrown |
| shop | deposit |
| progression | mod_cores_banked, slot_unlocked, mod_researched, mod_installed |
| town | surface_opened, idle_in_town, bay_selected, imprint_started |
An occasion joins the published vocabulary in the build that makes it match.
Combat occasions match arena events only, except mod_fired, and read the
attribution each damage and buff event carries (arena). hit is
the strike, not the stamina it took: a blow a ward or a plate absorbs whole is
still a hit on the bot it struck. telegraph matches each hit the arena
telegraphs as a bot’s turn closes (arena § Telegraph); lethal: true narrows it to a hit that would take the target’s whole
stamina. A bounce (barbs, active guard or reflect) is logged from
inside the blow it answers, so it precedes that blow in the log, and it is a
hit on the attacker like any other.
terrain_damage matches a bot taking damage from thorns, a pit or flow,
naming the terrain, the struck bot’s owner and catalog name (bot), and forced when a bot’s shove, push or pull put it on the tile; the struck bot
is both its actor and its target. slam matches a collision that took
stamina off a body a bot’s forced move moved, a push, a pull or a knock
across slick: its owner is the moved bot’s, the bot that caused the move is
its actor, and it names the mod. Both are still a hit and a stamina_below where the damage qualifies. exhausted names the downed body’s catalog name
(bot), the hazard that downed it when a pit or flow did, and by, the
owner of the bot whose damage downed it, or none when no bot’s did, as for a
block scrub destroys.
A shop bot’s mod fire is also a mod_fired, which a trigger reaches only by
naming station: shop; a mod_fired trigger that names no station matches
arena fires alone. supply_spent matches an arena bot’s mod spending an item
from its owner’s bin, once per spend, naming the item and that owner; the
spender is its actor.
point_placed matches the player placing a point on the arena, at the
arena, narrowed by its sign, positive or negative (Point).
The board occasions name what the running battle’s board holds where a bot
acted. moved_into matches an arena bot’s own walk landing on a cell of a
board region, once for each region covering that cell, whether or not the
walk began inside it, naming the board_region, which a trigger must name,
and the walker’s owner and catalog name (bot); the walker is its actor. switch_thrown matches an arena bot throwing a switch, naming the switch as machine; the thrower is its actor, and a board trigger’s firing of a switch
is no throw (arena). An idle walk and an idle throw write the
entries any move and throw writes, so each raises these occasions as any
other does (IDL-003). Narrowed by level:, either places a scene
at one spot on one level’s board, so a level’s scenes play in the order its
board is crossed.
The Power Station and shop occasions happen during a level and take its level:. glitch_charged matches a slot becoming fully charged and glitch_fired a glitch firing, each naming the glitch; power_wasted matches
power no slot could take and names no glitch. deposit matches a ticket
paid in full dropping its item into a bin slot (SHOP_TICKET_DONE), naming
the item and the owner whose bin holds it. The progression occasions carry
no level: mod_cores_banked matches each first victory that pays mod cores, slot_unlocked each Star Slot spent, naming its constellation and star, and mod_researched each research node powered, whether the player spent a token
or a grant did, and mod_installed each mod a spec newly holds on a
player-owned bot, naming the mod and its star, whether the player or auto-fill
set it.
Gates. Scenes gate on the level vocabulary. Three keys serve
hints: min_star_slots and min_mod_cores ask that the player carry
at least that many unspent Star Slots or mod cores, and max_levels_started that they have started at most that many levels, won or
lost. The count of levels started rides the save and a
progression reset clears it.
Derived specs — engine/bbsb_engine/test/occasions/occasions_spec.yaml · HOL holds · OCC occasions. engine/bbsb_engine/test/combat/combat_spec.yaml · ATR event-attribution · TLG telegraph. engine/bbsb_engine/test/progression/progression_spec.yaml · PEV progression-events.
Terms
| Term | Meaning |
|---|---|
| aiming hold | The aiming hold: no step is carried out while the player has a charged aimed glitch selected, or a Point press down (HOL-009). Distinct from the curtain, story and opening holds. |
| opening | The phase at a battle’s start, under the opening hold, in which the player picks the battle’s opening tickets at the shop until FIGHT › or its count ends it. Distinct from team assignment, which is level select’s. The overlord calls it the opening tickets. |
| hold | A reason the engine is not advancing play: aiming, curtain, story or opening (HOL-001). |
| result curtain | The card the client draws over the curtain hold as a level ends, with its result, the level’s last board and its reward haul (SceneCurtain, the center’s CurtainSurface); the change into the arena is acknowledged at once and draws none. |