Script:shopcategory: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
|intro=To allow all items again use {{Command|shopcategory|""}}. | |intro=To allow all items again use {{Command|shopcategory|""}}. | ||
For the shop category to have an effect the entity must be set to be a shop using {{Command|setshop}}. | For the shop category to have an effect the entity must be set to be a shop using {{Command|setshop}}. The shop category before calling {{Command|inventory create}} or {{Command|setshop|on}} and is not reset with {{Command|setshop|off}} or {{Command|inventory destroy}}. | ||
}} | }} |
Latest revision as of 11:21, 26 June 2022
The shopcategory
script command is used to limit the group of items that the player can put into a shop inventory for an entity. To allow all items again use shopcategory ""
.
For the shop category to have an effect the entity must be set to be a shop using setshop
. The shop category before calling inventory create
or setshop on
and is not reset with setshop off
or inventory destroy
.
Usage
shopcategory <group>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
group |
string |
Item group allowed in this shop container |