# Loot Table

## Creation

To create a loot table, find (or create) the *GameName/Resources/GameName/LootTable* folder in the project tab and right click.  Choose *Create > AnyRPG > LootTable*.

![](https://2976860065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7Nd93HqSNPpv2JhrViE%2Fuploads%2FPpvV9ZOmZ6OV9TbPHoPY%2Fimage.png?alt=media\&token=e5b6439d-4239-47fe-b635-d3234b2c1b13)

## Properties

| Name                     | Description                                                                                                                                                                                                                                                             |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ignore Global Drop Limit | Any lootable source can have a global limit on the number of items dropped, no matter how many loot tables it has.  If this option is true, that limit will be ignored, and the drop limit from this loot table will be used instead when rolling loot from this table. |
| Drop Limit               | If *Ignore Global Drop Limit* is true, this number will be the limit of the number of [Items](https://docs.anyrpg.org/scriptable-objects/items) dropped from this table.                                                                                                |
| Loot Groups              | A list of [Loot Groups](#properties-1) that shares drop chance and limit settings.                                                                                                                                                                                      |

### Loot Groups

| Name                     | Description                                                                                                                                                                                         |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Guaranteed Drop          | If true, the number of [Items](https://docs.anyrpg.org/scriptable-objects/items) defined in the *Drop Limit* field for this group will be guaranteed to drop, using their *Drop Chance* as weights. |
| Group Chance             | The chance this group will attempt to drop [Items](https://docs.anyrpg.org/scriptable-objects/items).                                                                                               |
| Drop Limit               | The amount of [Items](https://docs.anyrpg.org/scriptable-objects/items) that can drop from this list.  0 is unlimited.                                                                              |
| Unique Limit             | The limit to the number of times the same [Item](https://docs.anyrpg.org/scriptable-objects/items) can drop.  0 is unlimited.                                                                       |
| Ignore Global Drop Limit | If true, the [Items](https://docs.anyrpg.org/scriptable-objects/items) on this list will ignore any parent drop limits.                                                                             |
| Loot                     | A list of [Items](https://docs.anyrpg.org/scriptable-objects/items) that can drop.                                                                                                                  |

#### Loot

| Name                    | Description                                                                                                                                                                                                                            |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Item Name               | The name of an [Item](https://docs.anyrpg.org/scriptable-objects/items) that can drop.                                                                                                                                                 |
| Drop Chance             | The percentage chance that this [Item](https://docs.anyrpg.org/scriptable-objects/items) can drop.                                                                                                                                     |
| Min Drops               | The minimum number of this [Item](https://docs.anyrpg.org/scriptable-objects/items) that will drop.                                                                                                                                    |
| Max Drops               | The maximum number of this [Item](https://docs.anyrpg.org/scriptable-objects/items) that will drop.                                                                                                                                    |
| Match Item Restrictions | If true, [Character Class](https://docs.anyrpg.org/scriptable-objects/character-class) restrictions on the item must match for it to drop.  This is useful to prevent items from dropping that do no match the player's current class. |
| Prerequisite Conditions | A list of [Prerequisite Conditions](https://docs.anyrpg.org/shared-properties/prerequisite-conditions) that must be met for this item to drop.                                                                                         |

## Next Steps

* Add a loot table to a [Unit Profile](https://docs.anyrpg.org/scriptable-objects/unit-profile).
* Add a loot table to Gathering Node.
* Add a loot table to an Item Pickup.
* Add a loot table to a [Scene Node](https://docs.anyrpg.org/scriptable-objects/scene-node).
