Skip to main content

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

ParameterDescription
BaseObjectThe inventory owner to check
S1The Id from Object.json for the item to be added
F1The number of items to add (minimum: 1)

Examples

DescriptionBaseObjectCommand
Check if Yukgaejang can be added to Self's inventorySelfCanAddObjectToBag
Check if 2 items can be added to Target's inventoryTargetCanAddObjectToBag
Check if 1 item can be added to a storage container inventoryTargetCanAddObjectToBag