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
| Parameter | Description |
|---|---|
| BaseObject | The game object to check for purchasability. |
| CompareType | Supported compare types: Equal, NotEqual. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if the target object can be purchased | Target | IsPurchasable | Equal |
| Check if the target object cannot be purchased | Target | IsPurchasable | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents