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/03 15:42] – justin | item_editor [2022/06/16 18:45] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | The **Item Editor** | + | The **Item Editor** |
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | 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 ({{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 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^ | ||
+ | |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|Optional description of the item that is displayed on the item's tooltip in-game.| | ||
+ | |Image|Image to display for the item in the inventory/ | ||
+ | |Usable|Determines whether the item will be used/ | ||
+ | |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. The ID of the item used will be stored in the **$item_id** local variable.| | ||
~~NOTOC~~ | ~~NOTOC~~ |