Script:inventory playeraddfromscene: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{ScriptCommandPage
{{ScriptCommandPage
|description=add an existing entity to the player inventory
|description=add an existing item to the player inventory
|context=self
|context=self
|parameters=
|parameters=
entity entity ID of the entity to add to the player inventory
entity entity ID of the entity to add to the player inventory
|intro=The entity must exist on the current level.
|intro=The entity must exist on the current level. If the entity does not fit into the player inventory or is not an item that can be put into inventories then it is dropped in front of the player instead. Equipment items are first identified before being placed in the inventory which, if successful results in the {{Event|identify}} event being sent to the entity.
}}
}}

Revision as of 08:57, 19 June 2022

The inventory playeraddfromscene script command is used to add an existing item to the player inventory. The entity must exist on the current level. If the entity does not fit into the player inventory or is not an item that can be put into inventories then it is dropped in front of the player instead. Equipment items are first identified before being placed in the inventory which, if successful results in the identify event being sent to the entity.

Usage

inventory playeraddfromscene <entity>

Context: For self

Parameters:

ParameterTypeDescription
entity entity ID of the entity to add to the player inventory