Skip to main content

Condition_IsPurchasable

Description

Checks whether the game object specified by BaseObject can be purchased by the Self character. An object is not purchasable if it is owned by the same household as the buyer, preventing household members from purchasing their own property.

Note

The buyer character is always resolved as Self from the script context, regardless of the BaseObject setting. BaseObject identifies the game object to evaluate.

Parameters

ParameterDescription
BaseObjectThe game object to check for purchasability.
CompareTypeSupported compare types: Equal, NotEqual.

Examples

DescriptionBaseObjectCommandCompareType
Check if the target object can be purchasedTargetIsPurchasableEqual
Check if the target object cannot be purchasedTargetIsPurchasableNotEqual