This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
item [2020/12/02 10:47] – justin | item [2021/04/21 20:22] (current) – justin | ||
---|---|---|---|
Line 5: | Line 5: | ||
=====Scripting===== | =====Scripting===== | ||
+ | Certain item properties can be accessed from [[script|scripts]], | ||
+ | |||
+ | **Retrieving an item's name and description: | ||
<code bauxite> | <code bauxite> | ||
- | $item_name = item[" | + | $item_name = item[" |
+ | $item_desc = item[" | ||
</ | </ | ||
+ | **Retrieving the ID and count (i.e. stack size) of an item in a storage slot:** | ||
<code bauxite> | <code bauxite> | ||
- | $item_count = widget[" | + | $item_id = widget[" |
+ | $item_count = widget[" | ||
</ | </ | ||
+ | |||
~~NOTOC~~ | ~~NOTOC~~ |