Condition_AllInventoryChildState
Description
Checks if all children in the BaseObject's inventory satisfy the specified state condition. Returns true if all children match the state (Equal), or if all children do not match the state (NotEqual).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The inventory owner entity whose children are checked |
| CompareType | Equal (all children match the state) / NotEqual (all children do not match) |
| S1 | State Group ID to check |
| S2 | State ID to check within the state group |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Check if all inventory items are in the Normal state | Self | AllInventoryChildState | Equal | Normal | Normal |
| Check if all inventory items are not in the Normal state | Self | AllInventoryChildState | NotEqual | Normal | Normal |
| Check if all children of Target are in the Broken state | Target | AllInventoryChildState | Equal | Normal | Broken |
Back to Command FinderSearch and filter all 491 Script Condition documents