Skip to main content

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

ParameterDescription
BaseObjectThe inventory owner entity whose children are checked
CompareTypeEqual (all children match the state) / NotEqual (all children do not match)
S1State Group ID to check
S2State ID to check within the state group

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Check if all inventory items are in the Normal stateSelfAllInventoryChildStateEqualNormalNormal
Check if all inventory items are not in the Normal stateSelfAllInventoryChildStateNotEqualNormalNormal
Check if all children of Target are in the Broken stateTargetAllInventoryChildStateEqualNormalBroken