• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
6
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?
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    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)
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    I put the script on the line 2232 of "PokeBattle_Battle" and it says an error. What I did bad?
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    The error says: "Error de Script PokeBattle_Battle en la línea 4084 de tipo "SyntaxError""
     

    Diverscope

    Pardon me
    152
    Posts
    11
    Years
  • Then please, do as I'd say and post what exactly you changed in the "PokeBattle_Battle"-Script and show us the code you have modified.
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    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.
     
    971
    Posts
    7
    Years
    • Age 21
    • Seen Nov 28, 2022
    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.
     
    971
    Posts
    7
    Years
    • Age 21
    • Seen Nov 28, 2022
    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
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    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