TRpgHero.equip
Class
Syntax
procedure equip(id: word);
Description
The equip method attempts to equip a hero with an item of the type represented by id in the database. If that item does not exist, is not a piece of equipment, or can't be equipped by the current hero, nothing happens. Otherwise, the hero's currently equipped item for that slot (if any) is unequipped, one of that item is removed from the inventory if it is present, or created if it is not found in the inventory, and equipped on the hero.
Related topics
This help file was created with the free trial version of HelpScribble.