Battle Music
Music for a fight comes two ways: a battle place can have its own, and the project can have one battle song that follows the enemies.
A battle place's music
A battle place can have music: Edit > Project Settings > PROJECT > Battle Places, the place's Music row with its own Music volume. In a real-time game it plays while the player stands in the zone the place belongs to, and the map's music comes back when they walk out. In a turn-based game it plays for the fight.
The battle song
The rows are under BATTLE MUSIC at the head of PROJECT > Battle Places.

- Battle music
- Off, Zone only or Nearby enemies. Off by default.
- Song
- The battle song, with Pick... and Clear.
- Radius
- How near an enemy must be, in metres. 20 by default.
- Fade in
- Seconds the song takes to come in. 1 by default.
- Fade out
- Seconds the map's music takes to come back. 2 by default.
- Song volume
- A percent. 80 by default.
What each choice does:
- Nearby enemies
- The song plays while an enemy that has noticed the player stands within the radius, in any zone or none.
- Zone only
- The same, but only while the player stands in a zone.
- Off
- No battle song. A battle place's own music still plays.
- The song ends a tenth farther out than it starts, and holds one second after the last such enemy is gone, so an enemy at the edge does not make it stutter.
- A zone whose battle place has music keeps its own music inside that zone.
- The battle song is for real-time games. A turn-based fight plays its battle place's music.
- Stop ends it with the test.
A map's own song
Each map can have its own battle song: Edit > Project Settings > PROJECT > Map, under SOUND, Battle music with Pick... and Project's, and Battle music volume. The rule, radius and fades stay the project's.
The song a fight takes: the battle place's own song, else the map's, else the project's.
An enemy type's song
An enemy type can have its own battle song: Edit > Project Settings > ENEMIES > Stats, under BATTLE MUSIC, Battle music with Project's or a sound from the project's audio folder, and Only while alive.
- While an enemy of that type that has noticed the player stands within the radius, its song plays, whatever the zones and the Battle music choice say. It comes in over the project's Fade in.
- With Only while alive on (the default), it holds one second after the last one dies or walks out of the radius, then gives way over Fade out. With it off, it holds while any enemy that has noticed the player stands within the radius.
- Two types with songs: the nearer enemy's song plays.
- In a turn-based game, the type of the enemy that opened the fight plays its song instead of the place's music.
The song that plays: the enemy type's song, else the battle place's, else the map's, else the project's.
Music needs an enemy
Music needs an enemy, under BATTLE MUSIC on the Battle Places page, is off by default. On, a battle place's music plays in its zone only while an enemy that can fight is alive within the radius; in a zone with none the map's music plays. The music comes in over Fade in and gives way over Fade out. The battle song and the map's song already need an enemy that has noticed the player.
The files
game.vdc holds battlemusic off|zone|nearby, battlemusicsong <file>, battlemusicradius <metres>, battlemusicfadein <seconds>, battlemusicfadeout <seconds>, battlemusicvolume <percent> and, when on, battlemusicneedsfoe on. See Game Config Keys. A map with its own song holds battlemusic <file> <volume> in its map file; a map with none has no such line. An enemy type with its own song holds battlesong <file> in enemies.vfa, and battlesongalive off when Only while alive is off.
An old project
A project with no battlemusic line has it Off, and sounds as it did. A map with no battlemusic line takes the project's song. An enemy type with no battlesong line takes the order above.