[GH-ISSUE #6772] [Feature]: Game Mode inventory: a bag per party member, a shared view, and changes saved by the server #3792

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

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

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

Game Mode has one inventory for the whole party. Nobody in the party carries anything of their own: the Game Master cannot hand the rope to Bram, the player cannot give a potion to a companion, and a ruleset that tracks carrying weight has nobody to weigh it against.

How changes are saved causes problems too:

  • The Game Master's [inventory:] tags are applied in the browser, only as the player reads each part of the narration. A reply that finished while nobody was reading it, or was read on another device, never changes the inventory.
  • Refusals are never reported back. Taking an item the party does not have fails silently, so the Game Master never learns that it happened.
  • Saves are split in two. Every change writes the chat's stacks and the game state's detailed inventory in two separate requests, and the browser rolls one back by hand if the other fails. The combat director's item spends update only the stacks.

This is slice I2 of the ruleset items plan. It applies to every Game Mode game, with or without a ruleset. Ruleset items in the inventory (the item picker, equipping, binding and placement by carrying weight) follow in the next slice.

Proposed solution

  • A bag per party member. Each stack belongs to someone. A saved game's stacks belong to the player's character, so it opens exactly as it was.
  • A shared view. The inventory screen opens on All, which shows every bag together and who carries each stack, with one tab per party member.
    • Give moves some or all of a stack to another member, and dragging a stack onto a member's tab gives all of it.
    • Add puts the new item in the bag of the tab that is open, and in the player's bag from All.
  • The Game Master can say who.
    • who="Name" on add and remove.
    • action="give" to="Name" to hand something over.
    • Without who, an item is added to the player's bag, and taken from the player's bag first, then from the rest of the party.
  • The server applies the Game Master's tags when the reply is saved, in every game, the way ruleset sheet commands are. Each tag is rewritten with what happened, so a refused one is read back next turn. The browser still shows the notification as the player reaches that part of the narration.
  • One route for every change the player makes. It saves the stacks, the detailed inventory and the journal entry together, so they can never disagree. The combat director's item spends go through the same helper.
  • The Game Master sees who carries what once anyone other than the player holds something.
  • The next session keeps every bag.

Alternatives considered

  • Keep applying the Game Master's tags in the browser. It keeps the timing tied to the narration, but a reply read elsewhere still never applies and a refusal can never be reported. The notification keeps that timing anyway.
  • One bag per character as separate lists. A single list with a holder on each stack keeps every saved game valid, and the shared view is simply the whole list.

Additional context

Plan: the ruleset items arc (#6765 was slice I1). The user's ruling was a bag per character, because characters carry different weights, with a shared view. Placement by carrying capacity needs weighed ruleset items, so it arrives with the next slice.

One thing stays as it is today: a swipe or a regenerated reply applies its own inventory tags again, as the browser already does.

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 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6772 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? Game Mode has one inventory for the whole party. Nobody in the party carries anything of their own: the Game Master cannot hand the rope to Bram, the player cannot give a potion to a companion, and a ruleset that tracks carrying weight has nobody to weigh it against. How changes are saved causes problems too: - **The Game Master's `[inventory:]` tags are applied in the browser**, only as the player reads each part of the narration. A reply that finished while nobody was reading it, or was read on another device, never changes the inventory. - **Refusals are never reported back.** Taking an item the party does not have fails silently, so the Game Master never learns that it happened. - **Saves are split in two.** Every change writes the chat's stacks and the game state's detailed inventory in two separate requests, and the browser rolls one back by hand if the other fails. The combat director's item spends update only the stacks. This is slice I2 of the ruleset items plan. It applies to every Game Mode game, with or without a ruleset. Ruleset items in the inventory (the item picker, equipping, binding and placement by carrying weight) follow in the next slice. ## Proposed solution - **A bag per party member.** Each stack belongs to someone. A saved game's stacks belong to the player's character, so it opens exactly as it was. - **A shared view.** The inventory screen opens on **All**, which shows every bag together and who carries each stack, with one tab per party member. - **Give** moves some or all of a stack to another member, and dragging a stack onto a member's tab gives all of it. - **Add** puts the new item in the bag of the tab that is open, and in the player's bag from **All**. - **The Game Master can say who.** - `who="Name"` on add and remove. - `action="give" to="Name"` to hand something over. - Without `who`, an item is added to the player's bag, and taken from the player's bag first, then from the rest of the party. - **The server applies the Game Master's tags** when the reply is saved, in every game, the way ruleset sheet commands are. Each tag is rewritten with what happened, so a refused one is read back next turn. The browser still shows the notification as the player reaches that part of the narration. - **One route for every change the player makes.** It saves the stacks, the detailed inventory and the journal entry together, so they can never disagree. The combat director's item spends go through the same helper. - **The Game Master sees who carries what** once anyone other than the player holds something. - **The next session keeps every bag.** ## Alternatives considered - **Keep applying the Game Master's tags in the browser.** It keeps the timing tied to the narration, but a reply read elsewhere still never applies and a refusal can never be reported. The notification keeps that timing anyway. - **One bag per character as separate lists.** A single list with a holder on each stack keeps every saved game valid, and the shared view is simply the whole list. ## Additional context Plan: the ruleset items arc (#6765 was slice I1). The user's ruling was a bag per character, because characters carry different weights, with a shared view. Placement by carrying capacity needs weighed ruleset items, so it arrives with the next slice. One thing stays as it is today: a swipe or a regenerated reply applies its own inventory tags again, as the browser already does. ## 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.
bsakaguchi 2026-10-21 06:07:30 +07:00
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#3792
No description provided.