This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
give_item [2017/04/12 16:22] – justin | give_item [2018/03/16 09:45] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
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' | 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' | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
give_item(item_name) | give_item(item_name) | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |item_name|Name of the item.|[[String]]|Yes| | + | |item_name|Name of the item (as defined in the [[Item Editor]]).|[[String]]|Yes| |
====Example: | ====Example: | ||
Line 18: | Line 19: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Give Item** function to reward the player for completing a quest or as a way of collecting items from a treasure chests and other containers. | + | Use the **Give Item** function to reward the player for completing a quest or as a way of collecting items from treasure chests and other containers. |
</ | </ | ||