Condition_CanAddObjectToBag
Description
Checks whether an item can be added to the inventory.
Note
S1 must be a valid Id defined in Object.json. The target must own an inventory (e.g., Zoi, storage container). Returns false if the inventory is already full.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner to check |
| S1 | The Id from Object.json for the item to be added |
| F1 | The number of items to add (minimum: 1) |
Examples
| Description | BaseObject | Command |
|---|---|---|
| Check if Yukgaejang can be added to Self's inventory | Self | CanAddObjectToBag |
| Check if 2 items can be added to Target's inventory | Target | CanAddObjectToBag |
| Check if 1 item can be added to a storage container inventory | Target | CanAddObjectToBag |
Back to Command FinderSearch and filter all 491 Script Condition documents