# Create New Monster wave

Remember that this item must be added to the GameplayManager within each scene.

<figure><img src="https://215355839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc8AVbPtcUOjcVrQx9Eyu%2Fuploads%2FRWWli0PAhP0KPlapbyeJ%2FMonster%20Wave.png?alt=media&#x26;token=837459d9-6949-41a8-b4de-704c453b484e" alt=""><figcaption></figcaption></figure>

1. Win Condition: Select the game type \
   -**Survival time**: Win the match if you survive until time runs out. \
   -**Kill Boss**: Win the match when the boss spawns after a selected wave and you eliminate him (time does not count in this game mode).\
   -**Survival Time + Kill Boss**: Win the match if you survive until time runs out and eliminate the boss that will appear after time runs out.
2. BossPrefab: Final boss prefab with isFinalBoss box marked.
3. Survival Time: Survival time of this map.

Waves:\
Each wave can be configured to spawn multiple types of mobs and for a specific duration.

Wave Duration: duration that this wave will spawn the configured mobs.

Spawn Boss After Wave: For "Kill Boss" game type check this box when you want the Boss to spawn after this wave.

Monsters: \
Add and configure each monster that this wave will spawn

Monster Prefab: Add Monster Prefab.

Spawn Interval: time between one spawn and another of the same monster.

Gold per Monster: Gold that the monster will drop or automatically apply to the player

Xp per Monster: Experience that the monster will drop or automatically apply to the player.<br>


---

# 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://bizachi-dev.gitbook.io/bullethell-elemental-template/scriptables/create-new-monster-wave.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.
