Skip to main content

Condition_HasInInventoryHasRemainingFood

Description

Checks if any FoodObject in the BaseObject's inventory has remaining food servings. Optionally filters by a specific state (S1 = StateGroupId, S2 = StateId). If S1 and S2 are empty, only checks whether any food has remaining servings.

Parameters

ParameterDescription
BaseObjectThe inventory owner to search through
CompareTypeEqual: any food has remaining servings. NotEqual: any food is empty.
S1(Optional) StateGroupId to additionally filter food objects
S2(Optional) StateId to additionally filter food objects (must be used together with S1)

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Check if any food with remaining servings exists in inventorySelfHasInInventoryHasRemainingFoodEqual
Check if any empty food exists in inventorySelfHasInInventoryHasRemainingFoodNotEqual
Check if any food with remaining servings in Normal state existsTargetHasInInventoryHasRemainingFoodEqualNormalNormal