Skip to content

Destroy Item

Destroy Item

Permanently remove a specific item or equipment instance from the inventory by its unique ID.

Properties

System

Name Explanation Type
Item or Equipment Unique ID The unique ID of the item or equipment instance to destroy. Variable or Value

Examples

Destroy an Item by Unique Identifier in Global Variable 0

This permanently removes the item or equipment identified by the unique ID stored in Global Variable 0 from the inventory.

destroy_item($gv[0]);
{"Data":{"Identifier":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Inventory.DestroyItemCommand"}

Destroy an Item by Unique Identifier in Local Variable 3

This permanently removes the item or equipment identified by the unique ID stored in Local Variable 3 from the inventory.

destroy_item($lv[3]);
{"Data":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":true,"IsValue":false,"Value":"","VariableIndex":3,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Inventory.DestroyItemCommand"}