Music for a specific troop

How can I change the battle music for a troop, I tried to use "change bgm" On the troop but dont work.
What I Am doing wrong?
We can't tell you what you're doing wrong unless you post a screenshot of your troop event. The Play BGM event command works in battles, so you need to make sure the condition of your event is being met.
Did you remember to set a condition for the troop event you put that command into?
Did you remember to set a condition for the troop event you put that command into?
I just have the troop and nothing more there, just now that I put the change bgm
"change bgm"
that changes the map property for BGM, so if executed inside a troop event it will not take effect until after the battle is finished and the player returns to the map. then it will count for all following battles.

so if the battle is evented, you need to use that command before you give the battle processing command.
if this is a random battle, then you'll need a different approach with script commands
Edit: Just realised Andar meant the same command as I did so my comment was redundant.
que muda a propriedade do mapa para BGM, então se executado dentro de um evento de tropa, não terá efeito até que a batalha termine e o jogador retorne ao mapa. então contará para todas as batalhas seguintes.

então, se a batalha for complicada, você precisará usar esse comando antes de dar o comando de processamento da batalha.
se esta for uma batalha aleatória, você precisará de uma abordagem diferente com comandos de script
Btw also I use play bgm and Yes is a random enconter
that changes the map property for BGM, so if executed inside a troop event it will not take effect until after the battle is finished and the player returns to the map. then it will count for all following battles.

so if the battle is evented, you need to use that command before you give the battle processing command.
if this is a random battle, then you'll need a different approach with script commands
im not sure if is that a randam battle but... i will need scripts?
If you look at the bottom portion of the troop, where you're entering the event command, the very first thing you see is a bar labeled "Condition: "

That is the condition that must be fulfilled for your event commands to be processed. The default is "Don't Run," which...is telling the game not to run this event. So you need to change that to make it match when you want your music to change.

If you want the music to play from the start of the battle and this troop just has different battle music than what you set in your database, then you make the condition be Turn 0 and use the Play BGM event command.
If you look at the bottom portion of the troop, where you're entering the event command, the very first thing you see is a bar labeled "Condition: "

That is the condition that must be fulfilled for your event commands to be processed. The default is "Don't Run," which...is telling the game not to run this event. So you need to change that to make it match when you want your music to change.

If you want the music to play from the start of the battle and this troop just has different battle music than what you set in your database, then you make the condition be Turn 0 and use the Play BGM event command.
IT works thank you

Original thread: https://forums.rpgmakerweb.com/threads/music-for-a-specific-troop.134566/