Skip to main content

Condition_HasInInventoryObjectDetailType

Description

Checks if any child object in the BaseObject's inventory matches the specified ObjectDetailType. With Equal, returns true if any child has the given type; with NotEqual, returns true if any child does not have the given type.

Parameters

ParameterDescription
BaseObjectThe inventory owner to search through
CompareTypeEqual: any child matches the type. NotEqual: any child does not match the type.
S1EB2GameObjectDetailType enum name to check against (e.g., Food, Book)

Examples

DescriptionBaseObjectCommandCompareTypeS1
Check if inventory contains any Food type objectSelfHasInInventoryObjectDetailTypeEqualFood
Check if inventory contains any non-Book type objectTargetHasInInventoryObjectDetailTypeNotEqualBook