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
give_item [2023/01/02 21:03] justingive_item [2023/04/26 12:22] (current) justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-give_item(item_id, count)+give_item(item_id, count, character)
 </code> </code>
  
Line 12: Line 12:
 |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 (defaults to 1).|[[Number]]|No| |count|How many of the [[item]] to give to the player (defaults to 1).|[[Number]]|No|
 +|character|[[Character]] the [[item]] will be given to (defaults to main [[player character]]).|[[Entity]]|No|
  
 ^Return Value^Description^Type^ ^Return Value^Description^Type^
give_item.1672722200.txt.gz · Last modified: 2023/01/02 21:03 by justin