Script:shopcategory: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
|parameters=
|parameters=
group string [[:Category:Items|Item]] [[Script:setgroup|group]] allowed in this shop container
group string [[:Category:Items|Item]] [[Script:setgroup|group]] allowed in this shop container
|intro=<br>
|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}}.
}}
}}

Revision as of 10:55, 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.

Usage

shopcategory <group>

Context: Any Entity

Parameters:

ParameterTypeDescription
group string Item group allowed in this shop container