[GH-ISSUE #6607] [Feature]: Game Mode: let a ruleset reaction name the moment it waits for #3700

Closed
opened 2026-10-21 06:06:18 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6607

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

A Game Mode ruleset can mark a catalog entry as a reaction with mechanics.reaction: true, but that only says the entry is not taken on a turn. It does not say what the entry is waiting for, so the Engine has nowhere to offer it. Every entry marked that way sits on no menu at all.

The 5e package shows the cost: it ships Counterspell, Hellish Rebuke, Shield and Feather Fall as reactions, and none of them can ever be cast in a fight.

The window a reaction would be answered in exists as of #6525. What is missing is a way for an entry to say which moment it belongs to.

Proposed solution

Let mechanics.reaction be an object that names the moment, as well as true:

"reaction": { "on": "aimed", "at": "source", "cancels": true }
  • on is a closed list of the moments the Engine notices. aimed is before something lands on the entry's holder; harmed is after something has hurt them. Naming one puts the entry on that window's menu.
  • at is source (whoever caused the moment, filled in rather than picked) or chosen (the entry's own targets, and the holder picks).
  • cancels stops what the window was holding from happening at all. Only an aimed reaction may say it, because a moment that has already happened cannot be called off.

What the held action cost is paid before anybody is asked, so cancelling it stops it from happening rather than from having been bought. An entry that says only true or false behaves exactly as it does today. Packages that name a moment would need a new Capability API minor, because an older Engine refuses the whole strict catalog file if it cannot read the object.

Alternatives considered

Model each reaction spell by name. Rejected: rulesets must never be 5e-shaped. A moment is something any system has; a spell name is something one system has.

Let a reaction change a number on what it answers, so Shield's "+5 to your AC until your next turn" works. Left out: that is a condition question rather than a reaction one. Conditions are a closed list of names, not modifiers, so "harder to hit until your next turn" is not something a ruleset can say whether a reaction says it or anything else does.

Nest windows, so a counter can itself be countered. Left out: the fight keeps one window rather than a stack, and the bounded stack described in docs/development/game-combat-rulesets-implementation.md is the upgrade path once something needs it.

Additional context

Slice C5c of the ruleset combat arc. Of the four 5e reaction spells, Counterspell and Hellish Rebuke become expressible; Shield needs numeric condition modifiers and Feather Fall needs falling, neither of which the Engine has.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6607 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? A Game Mode ruleset can mark a catalog entry as a reaction with `mechanics.reaction: true`, but that only says the entry is not taken on a turn. It does not say what the entry is waiting for, so the Engine has nowhere to offer it. Every entry marked that way sits on no menu at all. The 5e package shows the cost: it ships Counterspell, Hellish Rebuke, Shield and Feather Fall as reactions, and none of them can ever be cast in a fight. The window a reaction would be answered in exists as of [#6525](https://github.com/Pasta-Devs/Marinara-Engine/pull/6525). What is missing is a way for an entry to say which moment it belongs to. ## Proposed solution Let `mechanics.reaction` be an object that names the moment, as well as `true`: ```json "reaction": { "on": "aimed", "at": "source", "cancels": true } ``` - `on` is a closed list of the moments the Engine notices. `aimed` is before something lands on the entry's holder; `harmed` is after something has hurt them. Naming one puts the entry on that window's menu. - `at` is `source` (whoever caused the moment, filled in rather than picked) or `chosen` (the entry's own targets, and the holder picks). - `cancels` stops what the window was holding from happening at all. Only an `aimed` reaction may say it, because a moment that has already happened cannot be called off. What the held action cost is paid before anybody is asked, so cancelling it stops it from happening rather than from having been bought. An entry that says only `true` or `false` behaves exactly as it does today. Packages that name a moment would need a new Capability API minor, because an older Engine refuses the whole strict catalog file if it cannot read the object. ## Alternatives considered **Model each reaction spell by name.** Rejected: rulesets must never be 5e-shaped. A moment is something any system has; a spell name is something one system has. **Let a reaction change a number on what it answers**, so Shield's "+5 to your AC until your next turn" works. Left out: that is a condition question rather than a reaction one. Conditions are a closed list of names, not modifiers, so "harder to hit until your next turn" is not something a ruleset can say whether a reaction says it or anything else does. **Nest windows**, so a counter can itself be countered. Left out: the fight keeps one window rather than a stack, and the bounded stack described in `docs/development/game-combat-rulesets-implementation.md` is the upgrade path once something needs it. ## Additional context Slice C5c of the ruleset combat arc. Of the four 5e reaction spells, Counterspell and Hellish Rebuke become expressible; Shield needs numeric condition modifiers and Feather Fall needs falling, neither of which the Engine has. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3700
No description provided.