Items

Types of Items

This is very simple:

diagram

An ItemInstant is an Item that can be right-clicked to be used.

Also see: picking up items

Items in inventories

Items are closely coupled to the inventory type of Abilities because when picked up, the engine tries to put an item into an inventory.

Items in the game world

For every item supposed to visually appear in the game world, a UnitBase has to be created and set to reference the item.

Item Slots

The existing types of Item Slots are defined in the Core Data.

An Item has the property: "Fits Into Slot Type". If this property is empty, it will fit into all slots that have their "Accepts" property empty.

Item Slots are inside Inventories. Inventories are Abilities. See Inventories.

Item Hints

Hints are not used by the engine and instead are meant to be used by User code.

  • Use the "Model Hint" property if you want to change the model of a unit to display items that it has equipped.

  • Use the "Motion Hint" property to do the same with animations. An example Motion Mapper can be found here.