[GH-ISSUE #6417] [Feature]: Roleplay dice commands support situational modifiers and DC #3592

Closed
opened 2026-10-21 06:04:36 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay dice commands can apply a participant's assigned attribute modifier, but the model cannot separately declare a situational bonus or penalty and an explicit difficulty class. Equipment such as a lockpick should be able to help a roll, while conditions such as climbing in a downpour should be able to hinder it.

Proposed solution

Add optional integer modifier and dc fields to the existing roll command and its native roll_dice JSON schema. Add the situational modifier once, on top of the notation and automatic attribute bonus. Preserve the DC with the real result and show it on the existing dice card. Keep the prompt addition very short and support both native tools and textual Roleplay commands, including rolls for the user's persona.

Alternatives considered

The model can currently embed a modifier in dice notation and describe a DC in prose. Explicit fields make the intended adjustment and target unambiguous while retaining those older commands.

Additional context

Requested by @SpicyMarinara as a follow-up to #6395. Implementation owner: @SpicyMarinara, assisted by Codex. This is the Roleplay command/tool path, separate from ruleset catalog mechanics in #6405 and #6411.

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 @SpicyMarinara on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6417 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay dice commands can apply a participant's assigned attribute modifier, but the model cannot separately declare a situational bonus or penalty and an explicit difficulty class. Equipment such as a lockpick should be able to help a roll, while conditions such as climbing in a downpour should be able to hinder it. ## Proposed solution Add optional integer `modifier` and `dc` fields to the existing roll command and its native `roll_dice` JSON schema. Add the situational modifier once, on top of the notation and automatic attribute bonus. Preserve the DC with the real result and show it on the existing dice card. Keep the prompt addition very short and support both native tools and textual Roleplay commands, including rolls for the user's persona. ## Alternatives considered The model can currently embed a modifier in dice notation and describe a DC in prose. Explicit fields make the intended adjustment and target unambiguous while retaining those older commands. ## Additional context Requested by @SpicyMarinara as a follow-up to #6395. Implementation owner: @SpicyMarinara, assisted by Codex. This is the Roleplay command/tool path, separate from ruleset catalog mechanics in #6405 and #6411. ## 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.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Implemented in #6418 and merged into staging. Both modifier and dc are optional; existing rolls keep their previous behavior when omitted.

<!-- gh-comment-id:5748607059 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Implemented in #6418 and merged into staging. Both modifier and dc are optional; existing rolls keep their previous behavior when omitted.
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#3592
No description provided.