# Waves

RageMode has a built-in system that allows you to use the zombie game mode as a wave-based match. By default once you create a zombie game, a default wave rounds is created for you in `plugins\RageMode\zombie game\zombie-wave.yml` file.

## Features

* Configure first wave delay in seconds
* Configure next wave delay in seconds
* Create as many rounds as you wish per game
* Define what zombies with x amount to spawn

## Configuration

```yml
first-wave-delay: 20
next-wave-delay: 20
games:
  example: # The name of the game
    final-wave: 4
    rounds:
      '1':
        spawn:
        - strong_zombie=RNG(1, 3) + players
        - zombie=5 + players
      '2':
        spawn:
        - zombie=RNG(15, 20)
      '3':
        spawn:
        - zombie=5
        - zombie=20
```

* `first-wave-delay` - The delay seconds of the first wave, `0` to spawn immediately
* `next-wave-delay` - The delay seconds of the next wave, `0` to spawn immediately
* `games.gameName` - The name of the game
  * `final-wave` - Final wave that ends the game
    * If this value is higher than the set number of rounds, the last round will be used
    * If this set to 0, only the first wave configuration have effect
  * `rounds` - Rounds/Wave configuration what and how many zombies to spawn
    * You can create as many rounds as you want
    * Use `zombie` to spawn general zombies, for [special zombies](/ragemode-docs/zombie-game-guide/special-zombies.md) use their specified name
    * You can as well specify how many zombies to spawn in a wave with [math operators](/ragemode-docs/mathematical-operations.md)
    * If no rounds are specified and this section is empty, no zombies will spawn
    * Syntax: `name=value`
      * Variables: `players` - players count in game


---

# 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://mdswork.gitbook.io/ragemode-docs/zombie-game-guide/waves.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.
