Location-based Battle Music

Another cool, if not well known, feature is the ability to easily change battle music per location.

Many thanks to ZArkadia for his work on categorizing each battle for Persona 4 Golden and Persona 5/Royal.

Requirements

This guide builds off the previous one: Adding Randomized BGM. If you don't want random BGM then you can just read through it and come back.

The Music Script

encounter["Mementos"]
  music = 10200
end

Just an encounter block with a collection. Super simple. This will make all battles in Mementos play BGM ID 10200.

How it works: The battles in an area are pre-determined, so it's possible to change the battle music of an area if you know the ID of every battle in it. Thanks to ZArkadia, we do for P4G and P5 in the form of collections.

A full list of collections can be found here.

And That's It

Persona 5 Royal

Remember that new music have their BGM IDs shifted by 10,000 in music scripts. To play music file 100.adx, you would use BGM ID 10100 (100 + 10000) in your music script. For details, see: Using New Music

Add to your music script and save, add your new audio track for BGM ID 10200, then test in-game if you want.

Continue