User Tools

Site Tools


add_item_to_container

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
add_item_to_container [2020/01/25 10:19] justinadd_item_to_container [2020/02/19 11:28] justin
Line 2: Line 2:
 ---- ----
  
-Adds one or more of the specified item to an item container. The ID of the item is case-sensitive and should match the ID assigned to it in the [[item_editor|Item Editor]] (e.g. "ITEM_0001"). The item will be placed into the first open slot of the container.+Adds one or more of the specified [[item]] to an [[item_container|item container]]. The ID of the [[item]] is case-sensitive and should match the ID assigned to it in the [[item_editor|Item Editor]] (e.g. "ITEM_0001"). The [[item|item(s)]] will be placed into the first open slot(s) of the [[item_container|container]].
  
 ====Signature:==== ====Signature:====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity|Container entity to which the item will be added.|[[Entity]]|Yes| +|entity|Container [[entity]] to which the [[item]] will be added.|[[Entity]]|Yes| 
-|item_id|ID of the item (as assigned in the [[Item Editor]]).|[[String]]|Yes| +|item_id|ID of the [[item]] (as assigned in the [[Item Editor]]).|[[String]]|Yes| 
-|count|Number of the item to add (defaults to 1).|[[Decimal]]|No|+|count|How many of the [[item]] to add (defaults to 1).|[[Number]]|No|
  
 ====Example:==== ====Example:====
add_item_to_container.txt · Last modified: 2023/01/02 21:08 by justin