Different battle music for different enemies

Hey is it possible to change the music for different enemies, so for one enemy it have one type of battle music and for like a boss, it would have it's own music since it is a boss and would have different music, is that a possibility?
yes and no

first, the enemies don't matter because you have to fight troops, not enemies.
however since you are the one who defines the troops, there is no problem of assigning the music to each troop.

if you are using evented battles there is no problem doing this, you just have to use change battlebgm before battleprocessing

if you are going random encounters it is a bit more problematic as you would have to use script commands to change the bgm after the battle is started.
first, the enemies don't matter because you have to fight troops, not enemies.
however since you are the one who defines the troops, there is no problem of assigning the music to each troop.

if you are using evented battles there is no problem doing this, you just have to use change battlebgm before battleprocessing
When you say assigning music to each troop, how does that work? I go to the troop page and put "Change Battle BGM" but it doesn't work, I try putting the battle processing tag before but it still doesn't work. For the second part I think I understand, you place the "Change Battle BGM" in there before a scripted fight. I just don't know how you assign it to a specific troop rather than having it set as a scripted fight.
I go to the troop page and put "Change Battle BGM" but it doesn't work
if you are using evented battles there is no problem doing this, you just have to use change battlebgm before battleprocessing

if you are going random encounters it is a bit more problematic as you would have to use script commands to change the bgm after the battle is started.
Not really correct, you can use the regular Play BGM event command. No need for a script.

1 - I believe there are plugins to do this, have you Googled it?

2 - The easy way to do this is to make the Battle Music in your database be empty. Then give every troop a Turn 0 troop event to Play BGM of whatever track you want in that troop.
I go to the troop page
that is wherte you got it wrong.

I wrote about evented battles, that means you go to the map event that is supposed to start the battle, and there you place a change battle bgm command before you place the battle processing command. and you select the music to fit the troop selected for battleprocessing.
no need to do anything in any troop event.

only when using random enemies that doesn't work.
Because battle bgm is a map-property and the battleengine does no longer check the map properties after the battlescreen is active.

So if using random troops, then you have to place the change battle bgm into the troop event.
and then you have to use a script command to force the battle engine to update its data after the battlescreen is active.
Unfortunately I don't remember that script command for MZ

EDIT: it might be that they changed that in MZ if what @ATT_Turan wrote is correct.
I never really used MZ, the script was needed for Ace and MV.

Original thread: https://forums.rpgmakerweb.com/threads/different-battle-music-for-different-enemies.146313/