Skip to main content

Condition_HasUnlockedGameObject

Description

Checks if a game object is owned and unlocked by the household of the Self character. If S1 is not specified, the Object ID is taken from the GameObject currently selected as Target.

Parameters

ParameterDescription
BaseObjectTarget Only — the context object; Self's household is always used for the unlock check.
CompareTypeSupported compare types: Equal (is unlocked), NotEqual (is not unlocked).
S1The Object ID to check (from Object.json). If omitted, the Target GameObject's ID is used.

Examples

DescriptionBaseObjectCommandCompareType
Check if grandfather clock is unlocked by Self's householdTargetHasUnlockedGameObjectEqual
Check if selected Target object is unlockedTargetHasUnlockedGameObjectEqual
Check if a skill reward object is not yet unlockedTargetHasUnlockedGameObjectNotEqual