======Item======
----
An **item** represents anything that the player is able to pick up and collect in their [[inventory]] or place into [[item container|item containers]]. This includes potions, keys, weapons, or even quest items that the player must retrieve for an [[NPC]]. The items for your game are defined in the [[Item Editor]].
=====Scripting=====
Certain item properties can be accessed from [[script|scripts]], for example to get the display name of an item by ID or to check the stack size of an item in a particular [[item_storage_slot|storage slot]].
**Retrieving an item's name and description:**
$item_name = item["ITEM_0001"].name;
$item_desc = item["ITEM_0001"].description;
**Retrieving the ID and count (i.e. stack size) of an item in a storage slot:**
$item_id = widget["test"].element["0001"].item.id;
$item_count = widget["test"].element["0001"].item.count;
~~NOTOC~~