TRpgInventory.add
Class
Syntax
procedure add(const id, number: word);
Description
The add method attempts to add a certain amount of an item to the inventory. It first checks to make sure that id refers to a valid item number from the database. If not, nothing happens. Otherwise, it adds number number of item #id to the inventory. If this makes the current amount of this item greater than 99, the quantity is set back to 99.
Related topics
This help file was created with the free trial version of HelpScribble.