Treasuretable

From LMHack

Original Author(s)

weirdboo

Description

A list of the treasure that can be spawned with the jump table treasuretable. Each entry will link up to the corresponding chest (takara1) entry for the room in characterinfo. Treasure collected from a chest cannot be collected again.

treasuretable can be edited with Jumpah.

Field Type Proper Values Description
other String Must be an entry from iteminfotable. If not, then simply put nothing. The item that should come out of a room's chest when opened. The item should be defined in iteminfotable in order for it to spawn properly. If the string nothing is used, then no item will come out of the chest.
room Integer map0, map5, map6, map7, and map8: 0-3. The room number that the entry links with. There can only be one entry per room.
map1, map3, map4, map9, map10, map11, and map12: 0.
map2: 0-71.
size Integer 0, 1, or 2. The size of the chest. 0 is small, 1 is medium, and 2 is large. Generally, in the original game, 0 was used for key chests, 1 was used for treasure, and 2 was used for boss keys / element medals.
coin Integer 0-200. The amount of coins to spawn from the chest.
bill Integer 0-90. The amount of bills to spawn from the chest.
gold Integer 0-2. The amount of gold bars to spawn from the chest.
SPearl Integer 0-9. The amount of small pearls to spawn from the chest.
MPearl Integer 0-4. The amount of medium pearls to spawn from the chest.
LPearl Integer 0-2. The amount of small pearls to spawn from the chest.
sapphire Integer 0-3. The amount of sapphires to spawn from the chest.
emerald Integer 0-3. The amount of emeralds to spawn from the chest.
ruby Integer 0-3. The amount of rubies to spawn from the chest.
diamond Integer 0-3. The amount of white diamonds to spawn from the chest.
cdiamond Integer 0-3. The amount of red diamonds to spawn from the chest. These diamonds are worth one coin, hence the abbreviation.
rdiamond Integer 0-3. The amount of gold diamonds to spawn from the chest. These are the "real" diamonds, hence the abbreviation.
effect Boolean 0 or 1. If set to 1, the chest will spawn with sparkles. If set to 0, the chest will spawn with no sparkles. These sparkles will disappear after the chest has been opened.
camera Boolean 0 or 1. If set to 1, the camera will zoom in on the chest when it spawns, or when Luigi leaves the room and returns without opening it. If set to 0, there will be no camera effect when the chest spawns.