mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5959] Let the GM ask the engine to roll any dice from narration text, not just d20 checks #3301
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5959
Originally assigned to: @SpicyMarinara on GitHub.
The gap this closes: the engine already throws honest dice for d20 skill checks over a plain text channel — no tools API involved, which is why it works on every connection including Claude/Grok subscriptions (#5923). But that resolver only answers d20-shaped checks.
isEngineRollableSkillCheckTag(shared/src/utils/skill-check-tag.ts:90) deliberately refuses pools,3d6,1d10, bare2d20, count/mode disagreements — even1d20+3. Those tags are left byte-identical, which means the numbers standing in the saved text for a 6d10 pool are the model's inventions. That's honest labeling, not honest dice.So a player running anything but d20 gets made-up numbers today, and a player on a subscription connection has no path to real ones for those systems at all (the
roll_dicetool can't reach them — see #5958).The ask: let the GM request any roll in narration text and have the server throw it.
Most of this already exists — the transport is general, only the resolver is narrow:
shared/src/utils/dice-notation.tsis already the single shared grammar across the/rollservice, the skill-check tag, the tool executor and the client roller.[skill_check:]grammar already carries arbitrarydice=,resolution="successes"and per-dierolls=.resolveSkillCheckTagsInContentalready rewrites resolved values into the message content in reading order, handles every tag in a turn, and runs before the content-replace event and before the save. It never inspects the provider or connection.POST /game/dice/roll, arbitrary notation, clamped at 100 dice / 1000 sides).Suggested scope, cheapest first:
[dice: …]request tag resolved by the existing rewriter, sharing the same grammar and the same clamps.game-narration-format.ts:36); mirroring what skill checks already do is roughly six lines and is the cheapest part of the whole design.resolution="successes"branch so pool systems are genuinely rolled rather than left as invention.The honest feel cost, in the words a player would use — this is the real difference from a tool call, not the card:
The shipped softener: rolling from the dice tray before sending gives about a beat and a half — the GM sees your raw die while writing, though not the verdict, since modifiers are applied after.
Relationship to the tool path: #5924's
roll_dicebuys the two things this channel structurally cannot — arbitrary notation and in-turn reaction — for connections that can call tools. This isn't a replacement for it; it's the honest floor for everyone else, and it's the only way subscription users ever get real non-d20 dice.@SpicyMarinara commented on GitHub (Sep 8, 2026):
Implementation is owned by @SpicyMarinara with Codex in draft #5979, as part of the authorized issue sweep. The work reuses the shared dice parser, existing cards, and per-swipe metadata.