Skip to content

rq.CanBuyCtx ​

What an rq.shop.on_can_buy callback gets.

Fields ​

NameTypeDescription
iiintegerThe item instance on the shop's rack.
nointegerIts item number.
id (optional)stringIts text id, when a mod defined the item.
namestringThe item's name.
priceintegerIts price, in gold.
to"vault"|"character"Where it goes: the vault, or a party member it is dragged onto (rq.item.buy's chara).

Used by ​

rq.shop.on_can_buy