User Tools

Site Tools


item_storage_slot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
item_storage_slot [2020/12/02 14:52]
justin
item_storage_slot [2020/12/02 14:52] (current)
justin
Line 11: Line 11:
 You can access certain properties of an item storage slot from a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for examples of retrieving the slot's [[item]]. In this case, we are assuming that the slot currently contains an [[item]], the [[widget]] has an ID of "​test",​ and the item storage slot has an ID of "​0001"​. If the slot is empty, its "​item"​ property will be null. You can access certain properties of an item storage slot from a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for examples of retrieving the slot's [[item]]. In this case, we are assuming that the slot currently contains an [[item]], the [[widget]] has an ID of "​test",​ and the item storage slot has an ID of "​0001"​. If the slot is empty, its "​item"​ property will be null.
  
-**Retrieving the item data for item storage slot:**+**Retrieving the item data for an item storage slot:**
 <code bauxite> <code bauxite>
 $item_id = widget["​test"​].element["​0001"​].item.id;​ $item_id = widget["​test"​].element["​0001"​].item.id;​
item_storage_slot.txt ยท Last modified: 2020/12/02 14:52 by justin