Script:setshop: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 13: Line 13:
* The player cannot directly use or combine items in shop inventories but must first buy them by dragging the items somewhere else.
* The player cannot directly use or combine items in shop inventories but must first buy them by dragging the items somewhere else.


The entity inventor may be set to act as shop before calling {{Command|inventory create}} and is not reset with {{Command|inventory destroy}}.
The entity inventory may be set to act as shop before calling {{Command|inventory create}} and is not reset with {{Command|inventory destroy}}.
}}
}}

Revision as of 11:21, 26 June 2022

The setshop script command is used to set the inventory to act as a shop for an entity. Shops have different interaction compared to other inventories when opened in the HUD:

The entity inventory may be set to act as shop before calling inventory create and is not reset with inventory destroy.

Usage

setshop <enable>

Context: Any Entity

Parameters:

ParameterTypeDescription
enable bool Should this entity's inventory act as a shop