Execute_RemoveObjectTemplateInBag
Description
Removes a random item matching the specified ObjectTemplate group from the bag.
Note
If the removal fails, a toast message is displayed: "No stored items available."
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner from which the item will be removed |
| S1 | The ObjectTemplateId from Object.json for the template group to remove from |
| F1 | The number of items to remove (minimum: 1) |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Remove 1 random item from a food template group in Self's bag | Self | RemoveObjectTemplateInBag |
| Remove 1 random item from a food template group in Target's bag | Target | RemoveObjectTemplateInBag |
| Remove 2 random items from a template group in Self's bag | Self | RemoveObjectTemplateInBag |
Back to Command FinderSearch and filter all 399 Script Execution documents