Skip to main content

Condition_HasState

Description

Checks if the BaseObject has a specific state within a state group. Unlike Condition_State, this checks if the object possesses a given state in any position, not only the current active state.

Parameters

ParameterDescription
BaseObjectTarget GameObject to check the state
CompareTypeEqual (has state) / NotEqual (does not have state)
S1State Group ID to search in
S2State ID to check for

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Check if Target has the "Broken" stateTargetHasStateEqualNormalBroken
Check if Target does not have the fire stateTargetHasStateNotEqualFireOnFire
Check if Self has the "Wet" stateSelfHasStateEqualWeatherWet