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
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner to search through |
| CompareType | Equal: 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
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Check if any food with remaining servings exists in inventory | Self | HasInInventoryHasRemainingFood | Equal | ||
| Check if any empty food exists in inventory | Self | HasInInventoryHasRemainingFood | NotEqual | ||
| Check if any food with remaining servings in Normal state exists | Target | HasInInventoryHasRemainingFood | Equal | Normal | Normal |
Back to Command FinderSearch and filter all 491 Script Condition documents