Chest Behavior

This behavior is used to designate actors as chests.

Adding Items to a Chest
To make a chest give gold to a player, add a new text item to the behavior included with the list. Type in "gold, amount" where amount stands for the amount of gold you want to give to the player.

Example (this will give the player 200 gold): gold, 200

To make a chest give the player an item, such as a potion, add a new text item to the behavior included with the list. Type in "item, item ID, amount" where item ID is either the name or the database ID number of an item and amount is the number of that item that you want to give to the player.

Example (this will give the player 2 Potions): Item, Potion, 2

Example #2 (this will also give the player 2 Potions, provided that Potions are the first item in the items database, or in otherwords, have an ID of 000): Item, 0, 2

To make a chest give the player an weapon, such as a sword, add a new text item to the behavior included with the list. Type in "weapon, weapon ID, amount" where weapon ID is either the name or the database ID number of an weapon and amount is the number of that weapon that you want to give to the player.

Example (this will give the player 2 Wooden Swords): Weapon, Wooden Sword, 2

Example #2 (this will also give the player 2 Wooden Swords, provided that Wooden are the first item in the weapons database, or in otherwords, have an ID of 000): Weapon, 0, 2

And for adding armors to the inventory, Armor, armor ID, quantity (same as weapons).

It is important to note that the types listed above (the exception being gold) begin with a CAPTIAL LETTER, i.e.  Weapon, weapon ID, quantity ,  Armor, armor ID, quantity , and   Item, weapon ID, quantity .