User Tools

Site Tools


remove_item

This is an old revision of the document!


Remove Item


Removes the specified item from the player's inventory. Only one instance is removed if the player has more than one of the item.

remove_item(item_name)
ArgumentDescriptionTypeRequired
item_nameName of the item to remove (as defined in the Item Editor).StringYes

Example:

remove_item("Gold Key")

Results: A gold key is removed from the player's inventory.

Use the Remove Item function when turning in a quest item for an NPC or opening a container with a key that's only good for one use.


Editor Node:

Visual Demo:

remove_item.1493674641.txt.gz · Last modified: 2017/05/01 14:37 by justin