User Tools

Site Tools


remove_item

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.

Signature:

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.txt · Last modified: 2018/03/16 09:47 by justin