Skip to main content

Condition_HasItemObjectTagToInventory

Description

Checks whether the inventory contains the specified number of objects matching a given ObjectTag.

Parameters

ParameterDescription
BaseObjectThe inventory owner to check
CompareTypeEqual, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange
S1The ObjectTag to match against (defined in Object*.json and ObjectTemplate*.json)
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 Giftable itemsSelfHasItemObjectTagToInventoryGreaterOrEqual
Check if Self’s inventory has between 3 and 10 Giftable itemsSelfHasItemObjectTagToInventoryInRange
Check if Target’s inventory has at least 1 item with the specified tagTargetHasItemObjectTagToInventoryGreaterOrEqual
Check if Self’s inventory has none of a specific tagged itemSelfHasItemObjectTagToInventoryEqual