Skip to main content

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

ParameterDescription
BaseObjectCharacter entity attempting to buy (buyer)
CompareTypeEqual / 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

DescriptionBaseObjectCommandCompareType
Check if character can buy objectSelfIsBuyableAtTinyShopEqual
Check if character cannot buy objectSelfIsBuyableAtTinyShopNotEqual