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 revisionBoth sides next revision
give_item [2019/12/22 15:44] justingive_item [2020/02/19 09:16] justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-give_item(item_id)+give_item(item_id, count)
 </code> </code>
  
 ^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|
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-give_item("Blue Gem")+give_item("ITEM_0007", 5)
 </code> </code>
-//Results:// A Blue Gem is placed into the player's inventory.+//Results:// Five of ITEM_0007 are placed into the player's inventory.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
give_item.txt · Last modified: 2023/04/26 12:22 by justin