> For the complete documentation index, see [llms.txt](https://docs.raulex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raulex.com/products/capture-the-flag/configuration-schema/lootpool.yaml.md).

# lootpool.yaml

### 🎁 Loot Pool YAML Schema Overview

The **lootpool.yaml** file defines the configuration for loot pools within the Capture the Flag event. It specifies how loot items are generated and distributed, ensuring players receive appropriate rewards. The schema consists of the following key components:

#### 🔑 Schema Components

* **lootPoolName**: (string) The name of the loot pool. This must be at least one character long.
* **inventory**: (optional array) A collection of loot items within the pool, each defined by the **inventorySchema**. The default value is an empty array if not specified. Each item in the inventory can have the following properties:
  * **min**: (number, optional) The minimum quantity of this item that can be awarded.
  * **max**: (number, optional) The maximum quantity of this item that can be awarded.
  * **item**: (string, optional) The name or identifier of the item being awarded.
  * **qty**: (number, optional) The specific quantity of this item that can be awarded.
  * **noDuplicates**: (boolean, optional) A flag indicating whether duplicate items are allowed in the loot. The default value is `false`.
  * **chance**: (number, optional) The probability of this item being awarded when loot is generated.
  * **inventory**: (optional array) An array of further nested loot items, allowing for complex loot structures (e.g., loot bags containing multiple items).\ <br>

    > **⚠️** If both **min** and **max** are not present for an item in the inventory, all items in that inventory will be spawned when the loot is generated.

#### 📜 Example of a Loot Pool Configuration

```yaml

lootPoolName: Default
inventory:
  - min: 1
    max: 2
    noDuplicates: true
    inventory:
      - item: SVD
        chance: 100
        inventory:
          - item: PSO11Optic
      - item: M4A1
        chance: 100
        inventory:
          - item: Mag_STANAG_60Rnd
  - noDuplicates: false
    inventory:
      - item: Flashlight
        inventory:
          - item: Battery9V
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.raulex.com/products/capture-the-flag/configuration-schema/lootpool.yaml.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.
