ECONOMY

Modify inventory

Adds, removes or sets how many copies of a catalog item the resolved owner has.

Use cases

Thieves stealing an item, penalties that take resources away, rewards that grant several copies at once, syncing a fixed amount after an event.

Parameters

Parameter Type Required Description
Mode No Add: gives more copies. Remove: takes copies away. Set: forces the exact amount the player should hold.
Item No Which item is affected.
Quantity No How many copies to add, remove, or reach.

→ In-game result

{
  "action": "ModifyItem",
  "mode": "...",
  "item": "...",
  "quantity": "..."
}
In-game result

Writes to the player's inventory. Set 0 clears this item for the player.

Related actions

Used in tutorials