Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Hello,
I want to ask, if there is a way to change the background music of a Triple Triad game. In my game, I have special opponents that I want to have a different music then the regular players.^^
In script section PMinigame_TripleTriad, look for this line:
Code:
pbBGMPlay("Triple Triad")
This is where it plays the default background music (when it's setting up the initial screen). This same function also has access to the battle logic, which has access to the opponent that you're playing against, so you could replace the line above with something line this:
Code:
if @battle.opponentName == "OPPONENT NAME"
pbBGMPlay("YOUR CUSTOM MUSIC")
else
pbBGMPlay("Triple Triad")
end
Of course, if you have more opponents with different themes, you can add "elsif" statements to extend out that conditional.