Encounter Scripts

Encounter scripts are one of the types of scripts used in Unitale battles, and are the most important scripts in every battle. There can be multiple different Encounter scripts in a mod, allowing for multiple battles to be packaged together, each different such as different waves, monsters and player stats.

Usable variables:
 * music: Name of the music, without the extension.
 * encountertext: Shows at the Fight/Act/Item/Mercy menu.
 * nextwaves: List of waves to run after the player does something.
 * wavetimer: The time that waves will continue for, in seconds.
 * arenasize: Size of the arena during waves, in pixels.
 * enemies: Names of the monster files of the enemies to show up in the battle.
 * enemypositions: Positions of the enemies' sprites, 0,0 is the middle of the screen.

List of usable functions in encounter scripts: