Skip to main content

Condition_IsInInventoryCount

Description

Checks how many entities are in the inventory.

Parameters

ParameterDescription
BaseObjectThe object to be checked for the condition
CompareTypeEqual, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange
S1Object.json Id to filter by (optional; if omitted, counts all items)
F1Quantity threshold to compare against
F2Upper quantity threshold (InRange, OutRange only)

Examples

DescriptionBaseObjectCommandCompareType
Check if inventory contains 5 or more objectsSelfIsInInventoryCountGreaterOrEqual
Check if inventory contains 2 or more of a specific objectSelfIsInInventoryCountGreaterOrEqual
Check if inventory contains between 5 and 10 objectsSelfIsInInventoryCountInRange
Check if Target’s inventory has fewer than 3 objectsTargetIsInInventoryCountLess