User Tools

Site Tools


give_item

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
give_item [2020/02/19 09:43] justingive_item [2020/02/19 11:29] justin
Line 2: Line 2:
 ---- ----
  
-Gives one or more of the specified [[item]] to the player. The ID of the [[item]] is case-sensitive and should match the name assigned to it in the [[item_editor|Item Editor]]. The [[item|item(s)]] will be placed into the first open slot(s) of the player's [[inventory]]. If the count is specified, it will default to 1.+Gives one or more of the specified [[item]] to the player. The ID of the [[item]] is case-sensitive and should match the name assigned to it in the [[item_editor|Item Editor]]. The [[item|item(s)]] will be placed into the first open slot(s) of the player's [[inventory]].
  
 ====Signature:==== ====Signature:====
Line 11: Line 11:
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |item_id|ID of the [[item]] (as defined in the [[Item Editor]]).|[[String]]|Yes| |item_id|ID of the [[item]] (as defined in the [[Item Editor]]).|[[String]]|Yes|
-|count|How many of the [[item]] to give to the player.|[[Number]]|No|+|count|How many of the [[item]] to give to the player (defaults to 1).|[[Number]]|No|
  
 ====Example:==== ====Example:====
give_item.txt · Last modified: 2023/04/26 12:22 by justin