# 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*.

## 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](/scriptable-objects/items.md) 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](/scriptable-objects/items.md) 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](/scriptable-objects/items.md).                                                                                               |
| Drop Limit               | The amount of [Items](/scriptable-objects/items.md) that can drop from this list.  0 is unlimited.                                                                              |
| Unique Limit             | The limit to the number of times the same [Item](/scriptable-objects/items.md) can drop.  0 is unlimited.                                                                       |
| Ignore Global Drop Limit | If true, the [Items](/scriptable-objects/items.md) on this list will ignore any parent drop limits.                                                                             |
| Loot                     | A list of [Items](/scriptable-objects/items.md) that can drop.                                                                                                                  |

#### Loot

| Name                    | Description                                                                                                                                                                                                        |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Item Name               | The name of an [Item](/scriptable-objects/items.md) that can drop.                                                                                                                                                 |
| Drop Chance             | The percentage chance that this [Item](/scriptable-objects/items.md) can drop.                                                                                                                                     |
| Min Drops               | The minimum number of this [Item](/scriptable-objects/items.md) that will drop.                                                                                                                                    |
| Max Drops               | The maximum number of this [Item](/scriptable-objects/items.md) that will drop.                                                                                                                                    |
| Match Item Restrictions | If true, [Character Class](/scriptable-objects/character-class.md) 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](/shared-properties/prerequisite-conditions.md) that must be met for this item to drop.                                                                                         |

## Next Steps

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anyrpg.org/scriptable-objects/loot-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
