User Tools

Site Tools


item_editor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
item_editor [2022/06/16 18:45] justinitem_editor [2024/02/22 11:31] (current) justin
Line 20: Line 20:
 |Usable|Determines whether the item will be used/consumed if the player right-clicks on it.| |Usable|Determines whether the item will be used/consumed if the player right-clicks on it.|
 |Number of Uses|Determines the number of times a usable item can be used/consumed, with zero meaning unlimited uses. This property is only available if the item is marked as usable.| |Number of Uses|Determines the number of times a usable item can be used/consumed, with zero meaning unlimited uses. This property is only available if the item is marked as usable.|
-|Script|Optional script that will be triggered when the player uses the item. This property is only available if the item is marked as usable. The ID of the item used will be stored in the **$item_id** local variable.|+|Script|Optional script that will be triggered when the player uses the item. This property is only available if the item is marked as usable. The item'ID will be stored in the **$item_id** local variable, and the item's [[codex]] will be stored in the **$item** local variable.|
  
 ~~NOTOC~~ ~~NOTOC~~
item_editor.1655430323.txt.gz · Last modified: 2022/06/16 18:45 by justin