This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
item_editor [2017/08/05 10:14] – justin | item_editor [2017/08/05 13:21] – justin | ||
---|---|---|---|
Line 7: | Line 7: | ||
Use the [[Give Item]] function in your game's [[startup script]] to give the player one or more of these items at the beginning of the game, for example to start them off with a health potion or two. | Use the [[Give Item]] function in your game's [[startup script]] to give the player one or more of these items at the beginning of the game, for example to start them off with a health potion or two. | ||
</ | </ | ||
+ | |||
+ | To create a new item, click the "New Item" button ({{: | ||
{{: | {{: | ||
- | At this point, the Item Editor is in an early state of development and items only have a few basic properties that can be set. Refer to the table below for descriptions of each property. | + | Currently, the Item Editor is in an early state of development and items only have a few basic properties that can be set. Refer to the table below for descriptions of each property. |
^Property^Description^ | ^Property^Description^ | ||
- | |Name| | | + | |Name|Name of the item. This is displayed on the item's tooltip in-game when the player hovers over it and when referencing the item in scripts (for example, in the [[Give Item]] function or " |
- | |Description| | | + | |Description|Optional description of the item that is displayed on the item's tooltip in-game.| |
- | |Image| | | + | |Image|Image to display for the item in the inventory/ |
- | |Usable| | | + | |Usable|Determines whether the item will be used/ |
- | |Script| | | + | |Number of Uses|Determines the number of times a usable item can be used/ |
+ | |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.| | ||
~~NOTOC~~ | ~~NOTOC~~ |