User Tools

Site Tools


equipment_slot

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
Next revisionBoth sides next revision
equipment_slot [2020/12/06 21:03] justinequipment_slot [2021/07/03 22:45] justin
Line 7: Line 7:
 ^Icon^Property^Description^ ^Icon^Property^Description^
 |{{:wiki:tag_id.png?nolink|}}|Element ID|ID for the equipment slot. This ID must be unique amongst other elements within the same [[widget]]. It is currently auto-generated but will be editable in a future update.| |{{:wiki:tag_id.png?nolink|}}|Element ID|ID for the equipment slot. This ID must be unique amongst other elements within the same [[widget]]. It is currently auto-generated but will be editable in a future update.|
-|{{:wiki:sword.png?nolink|}}|Equipment Slot ID|ID that will determine which [[item|items]] can be equipped to this slot. For example, if the Equipment Slot ID is configured as "head", the slot will only allow [[item|items]] that include a tag of "head" (e.g. an iron helmet).|+|{{:wiki:sword.png?nolink|}}|Equipment Slot ID|ID that will determine which [[item|items]] can be equipped to this slot. A particular slot ID will only allow [[item|items]] that include a tag listed for that slot in the "Equipment" section of the Stats Editor. For example, the "head" slot will only accept an [[item]] tagged with "helmet" (e.g. an iron helmet).|
  
 =====Scripting===== =====Scripting=====
Line 15: Line 15:
 <code bauxite> <code bauxite>
 $item_id = widget["test"].element["0001"].item.id; $item_id = widget["test"].element["0001"].item.id;
-$item_count = widget["test"].element["0001"].item.count+$item_count = widget["test"].element["0001"].item.count;
 </code> </code>
  
Line 21: Line 21:
 <code bauxite> <code bauxite>
 if widget["test"].element["0001"].item == null then if widget["test"].element["0001"].item == null then
-   display_message("There isn't an item in this slot."+   display_message("There isn't an item in this slot."); 
-end+end;
 </code> </code>
  
 ~~NOTOC~~ ~~NOTOC~~
equipment_slot.txt · Last modified: 2021/07/03 22:48 by justin