User Tools

Site Tools


give_item

This is an old revision of the document!


Give Item


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. The item will be placed into the first open slot of the player's inventory.

Signature:

give_item(item_id)
ArgumentDescriptionTypeRequired
item_idID of the item (as defined in the Item Editor).StringYes

Example:

give_item("Blue Gem")

Results: A Blue Gem is placed into the player's inventory.

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.


Editor Node:

Visual Demo:

give_item.1577058272.txt.gz · Last modified: 2019/12/22 15:44 by justin