[GH-ISSUE #1421] [Feature]: Expose the Game mode stat & skill-check system to the user (epic: visible/defined stats, persona stat blocks, optional custom systems) #704

Closed
opened 2026-10-20 17:32:05 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @GetBeholder on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1421

What problem does this solve?

Game mode already runs a D&D-style skill-check system internally, but it is
obfuscated from the user. Players cannot see their character/persona stats or
skills once the GM generates them (only by asking the GM), cannot tell what they
are likely to succeed or fail at, and the GM sometimes invents bizarre one-off
checks like "Predator Tracking Skill" or "Balancing" instead of using a
consistent, visible skill set. Exposing and structuring the stat system would let
players make informed decisions and engage with Game mode and roleplay more deeply.

Proposed behavior

This is an epic with phased sub-points (the reporter presented them as a
progression):

Phase 1 — Expose & define the stat/skill system (core):

  • Show the player's stats and skills in the frontend at any time (not only by
    asking the GM).
  • Make the stat→skill relationships explicit and visible (D&D-style example:
    Athletics←Strength, Persuasion←Charisma, Animal Handling←Wisdom).
  • Constrain the GM to a defined skill set so it stops generating arbitrary one-off
    checks (e.g. "Predator Tracking Skill"). Players should know which attribute
    governs an action (e.g. vaulting a box = an Athletics/Acrobatics check) before
    deciding whether to attempt it or seek an alternative.

Phase 2 — Persona stat blocks:

  • Add a visible stat block to a persona, viewable at any time, that evolves with
    experience, level, equipment, and status conditions, so personas engage with the
    system.

Phase 3 — User-definable stat systems (explicitly optional — "welcome but not
necessary"):

  • Let users define a custom stat system (e.g. Fallout's SPECIAL instead of
    D&D-style stat lines).
  • The reporter flags the complexity: a plug-and-play experience across games is
    hard when a persona/GM/worldbook expects Stat System A but the game expects Stat
    System B, so some compatibility/mapping handling would be needed.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

From a quick scan (triage pointer, not from the reporter): Game mode already has a
D&D-style skill-check engine — src/engine/modes/game/mechanics/skill-check.service.ts
(SkillCheckInput/SkillCheckResult: skill name, DC, skill modifier from
playerStats.skills, attribute modifier floor((score - 10) / 2), d20 with
advantage/disadvantage). Attributes are typed as RPGAttributes in
src/engine/contracts/types/game-state.ts, and characters already carry an
rpgStats config with custom attributes: [{ name, value }]
(src/engine/contracts/types/character.ts, ~L50-62). So the mechanics exist
server-side; this epic is largely about (a) exposing that state and the
attribute→skill mapping in the UI, (b) constraining GM-generated checks to a
defined skill set, and (c) optionally generalizing the stat schema for
user-defined systems. Related to #1292 (RPG stats not reaching the GM context).
Keep the stat/skill schema and check logic in the engine, the persona stat data in
catalog, and the visible stat block / stat-system UI in the game feature layer.

Alternatives considered

Phase 3 (custom stat systems) is the explicitly optional extension; the core value
is Phases 1–2 with a defined (e.g. D&D-style) system.

Additional context

Source: forum request by DSBwizzard (1-Star), 3:34 PM, expanded at 3:38 PM.
Environment: Windows 11 / Android, v1.6.1, Game mode. Motivating symptoms: oddball
one-off checks ("Predator Tracking Skill", "Balancing") and the inability to view
stats without asking the GM. Related: #1292 (RPG stats omitted from the GM
context).

Template check

Please uncheck 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 @GetBeholder on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1421 ## What problem does this solve? Game mode already runs a D&D-style skill-check system internally, but it is obfuscated from the user. Players cannot see their character/persona stats or skills once the GM generates them (only by asking the GM), cannot tell what they are likely to succeed or fail at, and the GM sometimes invents bizarre one-off checks like "Predator Tracking Skill" or "Balancing" instead of using a consistent, visible skill set. Exposing and structuring the stat system would let players make informed decisions and engage with Game mode and roleplay more deeply. ## Proposed behavior This is an epic with phased sub-points (the reporter presented them as a progression): **Phase 1 — Expose & define the stat/skill system (core):** - Show the player's stats and skills in the frontend at any time (not only by asking the GM). - Make the stat→skill relationships explicit and visible (D&D-style example: Athletics←Strength, Persuasion←Charisma, Animal Handling←Wisdom). - Constrain the GM to a defined skill set so it stops generating arbitrary one-off checks (e.g. "Predator Tracking Skill"). Players should know which attribute governs an action (e.g. vaulting a box = an Athletics/Acrobatics check) before deciding whether to attempt it or seek an alternative. **Phase 2 — Persona stat blocks:** - Add a visible stat block to a persona, viewable at any time, that evolves with experience, level, equipment, and status conditions, so personas engage with the system. **Phase 3 — User-definable stat systems (explicitly optional — "welcome but not necessary"):** - Let users define a custom stat system (e.g. Fallout's SPECIAL instead of D&D-style stat lines). - The reporter flags the complexity: a plug-and-play experience across games is hard when a persona/GM/worldbook expects Stat System A but the game expects Stat System B, so some compatibility/mapping handling would be needed. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations From a quick scan (triage pointer, not from the reporter): Game mode already has a D&D-style skill-check engine — `src/engine/modes/game/mechanics/skill-check.service.ts` (`SkillCheckInput`/`SkillCheckResult`: skill name, DC, skill modifier from `playerStats.skills`, attribute modifier `floor((score - 10) / 2)`, d20 with advantage/disadvantage). Attributes are typed as `RPGAttributes` in `src/engine/contracts/types/game-state.ts`, and characters already carry an `rpgStats` config with custom `attributes: [{ name, value }]` (`src/engine/contracts/types/character.ts`, ~L50-62). So the mechanics exist server-side; this epic is largely about (a) exposing that state and the attribute→skill mapping in the UI, (b) constraining GM-generated checks to a defined skill set, and (c) optionally generalizing the stat schema for user-defined systems. Related to #1292 (RPG stats not reaching the GM context). Keep the stat/skill schema and check logic in the engine, the persona stat data in catalog, and the visible stat block / stat-system UI in the game feature layer. ## Alternatives considered Phase 3 (custom stat systems) is the explicitly optional extension; the core value is Phases 1–2 with a defined (e.g. D&D-style) system. ## Additional context Source: forum request by DSBwizzard (1-Star), 3:34 PM, expanded at 3:38 PM. Environment: Windows 11 / Android, v1.6.1, Game mode. Motivating symptoms: oddball one-off checks ("Predator Tracking Skill", "Balancing") and the inability to view stats without asking the GM. Related: #1292 (RPG stats omitted from the GM context). ## Template check Please uncheck 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.
bsakaguchi 2026-10-20 17:32:05 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

IN THE FUTURE.

<!-- gh-comment-id:4557409273 --> @SpicyMarinara commented on GitHub (May 27, 2026): IN THE FUTURE.
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#704
No description provided.