TRpgInventory.remove

TURBU

TRpgInventory.remove

 

Class

TRpgInventory

 

Syntax

procedure remove(const id, number: word)

 

Description

The remove method attempts to remove a certain amount of an item from the inventory.  It first checks to make sure that id refers to a valid item number from the database, and that the inventory contains at least one of that item.  If not, nothing happens.  Otherwise, it removes number number of item #id to the inventory.  If number is more than the quantity of the item in the inventory, it removes all of that item.

 

Related topics

TRpgInventory.add

This help file was created with the free trial version of HelpScribble.