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 revision Previous revision
give_item [2018/03/16 09:45]
justin
give_item [2019/12/22 15:44] (current)
justin
Line 2: Line 2:
 ---- ----
  
-Gives the specified item to the player. The name of the item is case-sensitive and should match the name as defined ​in the [[item_editor|Item Editor]]. The item will be placed into the first open slot of the player'​s inventory.+Gives 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 will be placed into the first open slot of the player'​s inventory.
  
 ====Signature:​==== ====Signature:​====
 <code python> <code python>
-give_item(item_name)+give_item(item_id)
 </​code>​ </​code>​
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|item_name|Name 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|
  
 ====Example:​==== ====Example:​====
give_item.txt ยท Last modified: 2019/12/22 15:44 by justin