[GH-ISSUE #899] [Feature]: Support quantity values in Game Mode inventory tags #436

Closed
opened 2026-10-20 17:28:50 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Game Mode already has inventory add/remove tags, but there does not appear to be a concise way for the GM to add or remove multiple counts of an item in one command. If the GM needs to remove 10 coins, the workaround may be to emit the remove tag 10 times, or it may incorrectly create a separate item such as Coin x10 instead of updating the built-in quantity.

Proposed solution

Add explicit count/quantity support to existing Game Mode inventory tags.

Example:

[inventory: action="remove" item="Coin" count="10"]
[inventory: action="add" item="Potion" count="3"]

The count should update the built-in quantity for the matching item rather than creating a new item whose name includes the amount.

Alternatives considered

The current basic add/remove behavior is already possible with tags such as:

[inventory: action="add" item="Potion"]
[inventory: action="remove" item="Potion"]

That works for single-count changes, but it is awkward for larger amounts and can lead the GM to encode the quantity in the item name instead.

Additional context

Discord source: drakonbane asked whether removing 10 coins requires printing the remove command 10 times after being told the basic add/remove tags already exist.

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 @cha1latte on GitHub (May 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/899 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Game Mode already has inventory add/remove tags, but there does not appear to be a concise way for the GM to add or remove multiple counts of an item in one command. If the GM needs to remove 10 coins, the workaround may be to emit the remove tag 10 times, or it may incorrectly create a separate item such as `Coin x10` instead of updating the built-in quantity. ## Proposed solution Add explicit count/quantity support to existing Game Mode inventory tags. Example: ```text [inventory: action="remove" item="Coin" count="10"] [inventory: action="add" item="Potion" count="3"] ``` The count should update the built-in quantity for the matching item rather than creating a new item whose name includes the amount. ## Alternatives considered The current basic add/remove behavior is already possible with tags such as: ```text [inventory: action="add" item="Potion"] [inventory: action="remove" item="Potion"] ``` That works for single-count changes, but it is awkward for larger amounts and can lead the GM to encode the quantity in the item name instead. ## Additional context Discord source: drakonbane asked whether removing 10 coins requires printing the remove command 10 times after being told the basic add/remove tags already exist. ## 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

@cha1latte commented on GitHub (May 15, 2026):

Triage note: labeling this as \
ormal-scope\ because it is a focused extension to existing Game Mode inventory tags rather than a new inventory system.\n\nThe least risky next step is to define the accepted count/quantity attribute shape and verify add/remove/update behavior against existing inventory quantities.

<!-- gh-comment-id:4463379478 --> @cha1latte commented on GitHub (May 15, 2026): Triage note: labeling this as \\ ormal-scope\\ because it is a focused extension to existing Game Mode inventory tags rather than a new inventory system.\n\nThe least risky next step is to define the accepted count/quantity attribute shape and verify add/remove/update behavior against existing inventory quantities.
Author
Owner

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

Gonna add.

<!-- gh-comment-id:4470088280 --> @SpicyMarinara commented on GitHub (May 17, 2026): Gonna add.
Author
Owner

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

Fixed on staging in fd93b257: Game Mode inventory tags now accept count/quantity/qty attributes and apply stacked add/remove operations to both visible inventory and canonical player stats.

<!-- gh-comment-id:4470185852 --> @SpicyMarinara commented on GitHub (May 17, 2026): Fixed on staging in fd93b257: Game Mode inventory tags now accept count/quantity/qty attributes and apply stacked add/remove operations to both visible inventory and canonical player stats.
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#436
No description provided.