• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Changing the BGM during the battle.

  • 16
    Posts
    7
    Years
    • Seen Nov 23, 2020
    Hey guys I want to change the BGM of a battle when a determinated Pok?mon go into the battle like in the last Pokemon of the gym leaders of Unova. I know this is possible because I seen on Pok?mon Uranium so, how I do this?
     
    Thanks for your quick answer, but, can I change the BGM not for the last Pok?mon, for a determinated Pok?mon? (Sorry for my english I'm Spanish)
     
    I put the script on the line 2232 of "PokeBattle_Battle" and it says an error. What I did bad?
     
    The error says: "Error de Script PokeBattle_Battle en la línea 4084 de tipo "SyntaxError""
     
    I went to the line 2232 of "PokeBattle_Battle" and I put the script def pbSendOut(index,pokemon)
    pbSetSeen(pokemon)
    @peer.pbOnEnteringBattle(self,pokemon)
    if pbIsOpposing?(index)
    @scene.pbTrainerSendOut(index,pokemon)
    if $game_switches[112] and pbPokemonCount(@party2)==1
    pbBGMPlay("GymLastBGM",100,100)
    end

    Then I put a song named "GymLastBGM" and when I tested the game, it said me the error.
     
    I went to the line 2232 of "PokeBattle_Battle" and I put the script def pbSendOut(index,pokemon)
    pbSetSeen(pokemon)
    @peer.pbOnEnteringBattle(self,pokemon)
    if pbIsOpposing?(index)
    @scene.pbTrainerSendOut(index,pokemon)
    if $game_switches[112] and pbPokemonCount(@party2)==1
    pbBGMPlay("GymLastBGM",100,100)
    end

    Then I put a song named "GymLastBGM" and when I tested the game, it said me the error.

    You're missing an end. "if pbIsOppsing?(index)" isn't being ended.
     
    Code:
       pbSetSeen(pokemon)
       @peer.pbOnEnteringBattle(self,pokemon)
       if pbIsOpposing?(index)
         @scene.pbTrainerSendOut(index,pokemon)
         if $game_switches[112] and pbPokemonCount(@party2)==1
           pbBGMPlay("GymLastBGM",100,100)
         end
       end
     
    it says: "Error de Script PokeBattle_Battle en la línea 2232 de tipo "NameError".

    Undefined local variable or method "pokemon" for PokeBattle_Battle:Class"
     
    Back
    Top