> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/inventool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/inventool/scriptable-objects/loot-box.md). Agents can also search and read this documentation through its [MCP server](https://espergames.gitbook.io/inventool/~gitbook/mcp).

# Loot Box

Contains a randomized or specific set of items and currencies.

<figure><img src="https://658062748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkBIjnmm9A7LqfwoDhaeR%2Fuploads%2FCOJHcmCZZz55DOTZYmdf%2Fimage.png?alt=media&amp;token=6b66c692-92fe-452c-ab18-d98bf478b8fa" alt="" width="372"><figcaption></figcaption></figure>

A **Loot Box** is an object that you can use to set a randomized or specific set of rewards (items and currencies). These rewards can be obtained by either setting the loot box on an item through the [Items](https://espergames.gitbook.io/inventool/editors/object-manager/items.md#type) settings, using it with an [Item Spawner](https://espergames.gitbook.io/inventool/components/item-spawner.md), or manually opening the loot box through code.

You can create a Loot Box asset from **Assets > Create > Inventool > Items > Loot Box**.

You have more control of this object through code! Visit the scripting section for more information.

{% content-ref url="/pages/HG9BevRyOXzOtsofT8e5" %}
[Loot Box](https://espergames.gitbook.io/inventool/scripting/rewards/loot-box.md)
{% endcontent-ref %}

## Understanding Drop Rates

#### Percentages

The sum of all percentages forcibly equal 100 to give you **an idea** of how often the object will drop. Note that the min and max dropped **are not** taken into account in this calculation.&#x20;

**The percentages displayed under each object are only accurate if 1 object drops all the time.** This is because loot boxes select an object per roll.

#### Rolls

The loot box can perform **multiple rolls**, randomized between the **Min Dropped** and **Max Dropped** values.

The percentage shown on each object is the chance for it to be selected on **each roll**.&#x20;

Because rolls are **independent**, the same object can be rolled **more than once.**

Even if an object shows it has a 100% chance to drop, it **may not** drop if the **Min Dropped value is set to 0**, as there may not be any rolls performed.

## Properties

For each list, you can add objects with the "Add" button and remove them with the "X" button on each instance.

### Guaranteed Item Drops

A list of items that are guaranteed to drop when the loot box is opened.

#### Instance Properties

| Name   | Description                          |
| ------ | ------------------------------------ |
| Amount | The exact item stack amount dropped. |

### Guaranteed Currency Drops

A list of currencies that are guaranteed to drop when the loot box is opened.

#### Instance Properties

| Name  | Description                       |
| ----- | --------------------------------- |
| Value | The exact currency value dropped. |

#### Possible Item Drops

A list of items that **may** drop.

| Name        | Description                                       |
| ----------- | ------------------------------------------------- |
| Min Dropped | The minimum number of items dropped (randomized). |
| Max Dropped | The maximum number of items dropped (randomized). |

#### Instance Properties

| Name      | Description                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Range     | The range of the item stack amount (randomized from min to max).                                                                   |
| Drop Rate | The rate in which the object will drop compared to the others. This is not a percentage out of 100, but greatly contributes to it. |

#### Possible Currency Drops

A list of currencies that **may** drop.

| Name        | Description                                            |
| ----------- | ------------------------------------------------------ |
| Min Dropped | The minimum number of currencies dropped (randomized). |
| Max Dropped | The maximum number of currencies dropped (randomized). |

#### Instance Properties

| Name      | Description                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Min       | The minimum possible value.                                                                                                        |
| Max       | The maximum possible value.                                                                                                        |
| Drop Rate | The rate in which the object will drop compared to the others. This is not a percentage out of 100, but greatly contributes to it. |
