Raulex Docs
  • â„šī¸Introduction
  • đŸ–˛ī¸User
    • đŸ’ģConsole
      • đŸ•šī¸Access your console
      • 🚀Creating an Application
  • đŸ“ĻProducts
    • 🔑KeyCard Rooms
      • âŗClaiming free trial
      • 🚀Installation
      • 🔧Modifying Configs
        • đŸ—ī¸Structure of Configurations (Schema)
        • đŸšĒAdding a new door
        • đŸ“ĻAdding a new Loot Pool
    • â›ŗCapture The Flag
      • âš™ī¸Configuration Schema
        • đŸ—’ī¸config.yaml
        • 🌎zone.yaml
        • 🎁lootpool.yaml
Powered by GitBook
On this page
  1. Products
  2. Capture The Flag
  3. Configuration Schema

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).

      âš ī¸ 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


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
Previouszone.yaml

Last updated 7 months ago

đŸ“Ļ
â›ŗ
âš™ī¸
🎁