Condition_IsBuyableAtTinyShop
Script condition function to check if an object is buyable at a TinyShop.
This condition verifies whether a character (BaseObject) can purchase a specific game object (NonBaseObject) from a TinyShop. It checks the object's location site, validates the TinyShopComponent, and determines buyability based on shop rules.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Character entity attempting to buy (buyer) |
| CompareType | Equal / NotEqual |
Notes
- The target object is resolved internally via ScriptContext (NonBaseObject).
- Returns false if the buyer character is invalid.
- Returns false if the buy object is invalid.
- Returns false if the object's located site does not have a TinyShopComponent.
- Buyability is determined by TinyShopComponent.IsBuyable() which checks shop inventory and buyer eligibility.
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Check if character can buy object | Self | IsBuyableAtTinyShop | Equal |
| Check if character cannot buy object | Self | IsBuyableAtTinyShop | NotEqual |
Back to Command FinderSearch and filter all 491 Script Condition documents