Script:inventory create: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
|context=any
|context=any
|intro=If the calling entity already has an inventory it and all contained items are destroyed as if {{Command|inventory destroy}} was called before a new empty inventory is created. This command has no effect for the [[player]].
|intro=If the calling entity already has an inventory it and all contained items are destroyed as if {{Command|inventory destroy}} was called before a new empty inventory is created. This command has no effect for the [[player]].
To add items to the inventory use {{Command|inventory add}}, {{Command|inventory addmulti}} or {{Command|inventory addfromscene}}.
To let the player access the inventory in the HUD use {{Command|stealnpc}} or {{Command|inventory open}}.
To change how the inventory looks and behaves use {{Command|inventory skin}}, {{Command|setshop}}, {{Command|shopcategory}} or {{Command|shopmultiply}}.
}}
}}


[[Category:Script commands destroying entities]]
[[Category:Script commands destroying entities]]

Revision as of 11:29, 26 June 2022

The inventory create script command is used to enable and clear the inventory for an entity. If the calling entity already has an inventory it and all contained items are destroyed as if inventory destroy was called before a new empty inventory is created. This command has no effect for the player.

To add items to the inventory use inventory add, inventory addmulti or inventory addfromscene.

To let the player access the inventory in the HUD use stealnpc or inventory open.

To change how the inventory looks and behaves use inventory skin, setshop, shopcategory or shopmultiply.

Usage

inventory create

Context: Any Entity