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 [2017/08/03 15:42] justinitem_editor [2024/02/22 11:31] (current) justin
Line 2: Line 2:
 ---- ----
  
-The **Item Editor** +The **Item Editor** allows you to define items for your game. This includes anything that the player will be able to collect in their inventory or that can be placed into item containers, like potions, keys, weapons, or even quest items that the player must retrieve for an NPC. 
 + 
 +<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. 
 +</WRAP> 
 + 
 +To create a new item, click the "New Item" button ({{:wiki:new_resource.png?nolink|}}) on the toolbar. If you'd like to remove an existing item, select it in the item list on the left then click the "Delete" button ({{:wiki:delete.png?nolink|}}) on the toolbar. 
 + 
 +{{:wiki:item_editor.png?nolink|}} 
 + 
 +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 "contains" [[conditional expression]]). When referencing an item in a [[quick script]], the case should match exactly as it is defined in the Item Editor (i.e. case-sensitive).| 
 +|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/container grid. The image should be 32x32 pixels in size.| 
 +|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.| 
 +|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's 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.1501800130.txt.gz · Last modified: 2017/08/03 15:42 by justin