I'm using JasonTM's loot table's currently, and I want to learn how to edit/make my own custom tables
Link for his
I'm going to use the Construction.hpp file as an example
Construction[] =
{
{Loot_MAGAZINE, 9, ItemLog}, // Used for crafting and vanilla buildables
{Loot_MAGAZINE, 9, ItemPlank},
{Loot_MAGAZINE, 5, ItemStone}, // Used for crafting and vanilla buildables
{Loot_MAGAZINE, 8, equip_nails},
// {Loot_MAGAZINE, 3, ItemScrews},
// {Loot_MAGAZINE, 9, equip_metal_sheet_rusted},
{Loot_MAGAZINE, 9, equip_metal_sheet},
{Loot_MAGAZINE, 1, equip_lever},
{Loot_MAGAZINE, 1, ItemComboLock},
{Loot_WEAPON, 1, ItemPickaxe},
{Loot_WEAPON, 2, ItemPickaxeBroken},
{Loot_WEAPON, 1, ItemSledge},
{Loot_MAGAZINE, 2, ItemSledgeHandle},
{Loot_MAGAZINE, 2, ItemSledgeHead},
// {Loot_WEAPON, 2, ItemShovel},
{Loot_WEAPON, 1, ItemKeyKit},
//Items
{Loot_MAGAZINE, 6, ItemSandbag},
{Loot_MAGAZINE, 4, ItemJerryCan},
{Loot_MAGAZINE, 1, ItemWire},
{Loot_MAGAZINE, 4, ItemTankTrap},
{Loot_MAGAZINE, 1, equip_brick},
{Loot_MAGAZINE, 3, equip_duct_tape},
{Loot_MAGAZINE, 2, equip_hose},
// {Loot_MAGAZINE, 1, equip_scrapelectronics},
{Loot_MAGAZINE, 2, equip_1inch_metal_pipe},
{Loot_MAGAZINE, 2, equip_2inch_metal_pipe},
{Loot_MAGAZINE, 10, MortarBucket},
{Loot_MAGAZINE, 10, CinderBlocks},
{Loot_MAGAZINE, 3, ItemFuelBarrelEmpty},
{Loot_MAGAZINE, 3, ItemGenerator},
{Loot_MAGAZINE, 1, fuel_pump_kit},
//Other
{Loot_GROUP, 15, Parts},
{Loot_GROUP, 7, Military},
{Loot_PILE, 4, Consumable, 1, 2},
{Loot_GROUP, 10, Trash},
//{Loot_GROUP, 6, Parts},
{Loot_GROUP, 3, Generic}
};
If I wanted to add say a safe 'ItemVault' to the loot that would spawn in groups of 3, how would I do this?
What does each part of a line mean, what would I need to add for the above example.
Thanks in advance