< Images Index Dialogs >

Inventory and Objects

The Object item describes objects stored in the inventory. With the Inventory item, the inventory is manipulated.

Object

Item typeObject
Descriptionan object in the inventory
Action-
Conditiontrue, if object is in inventory

KeyTypeDefaultDescription
descriptionstringa short description0
imageImagesimage to display
actions[Action][]list of tool actions
cursorfile""the cursor to use if this object is the selected object

Note: The cursor file is only used, if one or more tools are configured to use this cursor when the object is the selected object in the inventory. If the cursor is set to @, a cursor is created using the image of the object. (@ does not work for text images.)

Inventory

Item typeInventory
Descriptionmanipulation of inventory
Actionadds / removes objects to / from inventory
Conditiontrue, if action performed

KeyTypeDefaultDescription
objectObjects<>the object
positionint-1position in inventory (see definitions for special values)
selectbool0select object as current object for tool actions
insertAfterElems<>the position is relative to an object in the inventory
backwardsbool0the position is relative to the end of the inventory
updatebool1update flag; if false, the change will not take effect immediately

Note: If the object of an Inventory item is <> and it is executed as the result of a mouse click in the inventory to an object, the Inventory item is applied to the object clicked at. Thus, a useful tool for the inventory is Tool {select | select | Inventory {<> | -3 | t}} which makes an object the selected object if you click at it in the inventory.