TRpgParty.removeItem

TURBU

TRpgParty.removeItem

 

Class

TRpgParty

 

Syntax

procedure removeItem(const id, number: word);

 

Description

The removeItem 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

TRpgParty.addItem

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