In this tutorial we’ll set up loot tables that’ll be used by enemy combatants.

Now that we’ve got our items and equipment, we can set up the loot our enemies will drop when the player defeats them.

Loot allows setting up different loot tables based on level ranges, e.g. an enemy can drop a regular Potion for level 1 to 25 and a High Potion for level 26 to 50. Learn more about loot in this documentation.

Combatants can use multiple loot tables, either using all of them or one of them at random. We’ll set up different thematic loot tables, e.g. one for gold, one for health potions, etc.

Navigate to Combatants > Loot, we’ll change the Default loot and add additional loot.

0: Gold #

We’ll start with dropping currencies – monster slaying is a business, after all. This loot will be used by all combatants (via default loot).

Instead of setting up many different loot tables with increasing gold amounts, we’ll use the Level Based Reward formula to scale with the combatant’s level.

Base Settings #

  • Name
    Set to Gold.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level 1-15 will drop gold 1.5 times the combatant’s level. Quantities are whole numbers, e.g. level 1 will drop 1 gold, level 2 will drop 3, level 3 will drop 4, level 4 will drop 6, etc.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 15.

Loot Settings #

Click on Add Item.

  • Type
    Select Currency.
  • Currency
    Select Gold.
  • Quantity
    Select Value > Formula.
  • Initial Value
    Set to 1.5.

Loot Table 1 #

Copy Loot Table 0 and change the following settings.

Level 16-30 will drop gold 3 times the combatant’s level.

Level Range #

  • Minimum Level
    Set to 16.
  • Maximum Level
    Set to 30.

Loot Settings > Item 0 #

  • Initial Value
    Set to 3.

Loot Table 2 #

Copy Loot Table 1 and change the following settings.

Level 31-45 will drop gold 6 times the combatant’s level.

Level Range #

  • Minimum Level
    Set to 31.
  • Maximum Level
    Set to 45.

Loot Settings > Item 0 #

  • Initial Value
    Set to 6.

Loot Table 3 #

Copy Loot Table 2 and change the following settings.

Level 46-50 will drop gold 10 times the combatant’s level.

Level Range #

  • Minimum Level
    Set to 46.
  • Maximum Level
    Set to 50.

Loot Settings > Item 0 #

  • Initial Value
    Set to 10.

1: Health Potion #

Lower levels (1-25) will drop Potion, higher levels (26-50) will drop High Potion.

Base Settings #

  • Name
    Set to Health Potion.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 25.

Loot Settings #

Click on Add Item.

  • Type
    Select Item.
  • Item
    Select Potion.
  • Quantity
    Select Value > Value.
    Set the value to 1.
  • Chance
    Select Value > Value.
    Set the value to 50.
    There’s a 50% chance the potion will drop.

Loot Table 1 #

Copy Loot Table 0 and change the following settings.

Level Range #

  • Minimum Level
    Set to 26.
  • Maximum Level
    Set to 50.

Loot Settings > Item 0 #

  • Item
    Select High Potion.

2: Magic Potion #

Lower levels (1-15) will have a 25% chance to drop a Magic Potion, mid levels (16-30) will have a 50% chance, higher levels (31-50) will have a 100% chance.

Base Settings #

  • Name
    Set to Magic Potion.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 15.

Loot Settings #

Click on Add Item.

  • Type
    Select Item.
  • Item
    Select Magic Potion.
  • Quantity
    Select Value > Value.
    Set the value to 1.
  • Chance
    Select Value > Value.
    Set the value to 25.

Loot Table 1 #

Copy Loot Table 0 and change the following settings.

Level Range #

  • Minimum Level
    Set to 16.
  • Maximum Level
    Set to 30.

Loot Settings > Item 0 #

  • Chance
    Select Value > Value.
    Set the value to 50.

Loot Table 2 #

Copy Loot Table 1 and change the following settings.

Level Range #

  • Minimum Level
    Set to 31.
  • Maximum Level
    Set to 50.

Loot Settings > Item 0 #

  • Chance
    Select Value > Value.
    Set the value to 100.

3: Cure Potion #

25% chance to drop a Cure Potion for all levels.

Base Settings #

  • Name
    Set to Cure Potion.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 50.

Loot Settings #

Click on Add Item.

  • Type
    Select Item.
  • Item
    Select Cure Potion.
  • Quantity
    Select Value > Value.
    Set the value to 1.
  • Chance
    Select Value > Value.
    Set the value to 25.

4: Special Potions #

Low chance to drop Super Potion or Revive Potion for level 1-50.

Base Settings #

  • Name
    Set to Special Potions.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 25.

Loot Settings #

  • Get Random
    Enable this setting.
    We’ll only get a chance to get one of the added items.

Click on Add Item.

  • Type
    Select Item.
  • Item
    Select Super Potion.
  • Quantity
    Select Value > Value.
    Set the value to 1.
  • Chance
    Select Value > Value.
    Set the value to 10.

Copy Item 0 and change the following settings.

  • Item
    Select Revive Potion.

5: Magic Crystal 3% #

Very low chance to drop a Magic Crystal on all levels.

This’ll be used by all enemies to have a low chance of obtaining a magic crystal. They’ll be used for ability upgrades.

Base Settings #

  • Name
    Set to Magic Crystal 3%.

Loot Table 0 #

Click on Add Loot Table to add the first loot table.

Level Range #

  • Minimum Level
    Set to 1.
  • Maximum Level
    Set to 50.

Loot Settings #

Click on Add Item.

  • Type
    Select Item.
  • Item
    Select Magic Crystal.
  • Quantity
    Select Value > Value.
    Set the value to 1.
  • Chance
    Select Value > Value.
    Set the value to 3.

6: Magic Crystal 50% #

50% chance to drop a Magic Crystal on all levels.

This’ll be used by mini bosses.

Copy the Magic Crystal 3% loot and change the following settings.

Base Settings #

  • Name
    Set to Magic Crystal 50%.

Loot Table 0 > Loot Settings > Item 0 #

  • Chance
    Select Value > Value.
    Set the value to 50.

Save Changes #

And that’s it for the loot setup.

Don’t forget to save your changes by clicking on Save Settings at the bottom of the editor.

Next, we’ll set up battle AIs.

(Optional) Wanna do more? #

In case you’re bored – add equipment loot drops. This includes:

  • adding new Equipment loot
  • adding multiple loot tables for different level ranges
  • add level appropriate equipment for the level ranges

E.g. level 1-10 dropping gear that can be equipped below level 10, level 11-20 dropping gear that can be equipped below level 20, etc.