Skip to main content

Condition_HasItemObjectToInventory

Description

Checks whether the inventory contains the specified number of objects matching a given Object.json Id.

Parameters

ParameterDescription
BaseObjectThe inventory owner to check
CompareTypeEqual, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange
S1The Id from Object.json to match against
F1The quantity threshold to compare against (must be 0 or greater)
F2Upper quantity threshold (InRange, OutRange only)

Examples

DescriptionBaseObjectCommandCompareType
Check if Self’s inventory has 2 or more of a specific itemSelfHasItemObjectToInventoryGreaterOrEqual
Check if Self’s inventory has between 3 and 5 of a specific itemSelfHasItemObjectToInventoryInRange
Check if Target’s inventory has exactly 1 of a specific itemTargetHasItemObjectToInventoryEqual
Check if Self’s inventory has none of a specific itemSelfHasItemObjectToInventoryEqual