The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Essentials Question Changing the BGM during the battle.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.


Reply
 
Thread Tools
  #1    
Old June 19th, 2017 (10:26 AM).
Pokenisu Pokenisu is offline
     
    Join Date: Jun 2017
    Posts: 12
    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?
    Reply With Quote

    Relevant Advertising!

      #2    
    Old June 19th, 2017 (11:01 AM).
    Marin's Avatar
    Marin Marin is offline
    Not Bored
       
      Join Date: Nov 2016
      Gender: Other
      Posts: 624
      http://pokemonessentials.wikia.com/wiki/Tutorial:Last_sent_out_pokemon_BGM
      __________________
      If you're looking for me, I'm on Safari Zone.
      Reply With Quote
        #3    
      Old June 19th, 2017 (12:20 PM).
      Pokenisu Pokenisu is offline
         
        Join Date: Jun 2017
        Posts: 12
        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)
        Reply With Quote
          #4    
        Old June 20th, 2017 (5:09 AM).
        Pokenisu Pokenisu is offline
           
          Join Date: Jun 2017
          Posts: 12
          I put the script on the line 2232 of "PokeBattle_Battle" and it says an error. What I did bad?
          Reply With Quote
            #5    
          Old June 20th, 2017 (8:13 AM).
          Diverscope's Avatar
          Diverscope Diverscope is offline
          Pardon me
             
            Join Date: Apr 2013
            Gender: Male
            Nature: Rash
            Posts: 81
            Post the changed section of the script and the error message, otherwise we're unable to help you.
            __________________
            Reply With Quote
              #6    
            Old June 20th, 2017 (11:55 AM).
            Pokenisu Pokenisu is offline
               
              Join Date: Jun 2017
              Posts: 12
              But I have Pokemon Essentials in Spanish, you will understand?
              Reply With Quote
                #7    
              Old June 20th, 2017 (1:46 PM).
              Diverscope's Avatar
              Diverscope Diverscope is offline
              Pardon me
                 
                Join Date: Apr 2013
                Gender: Male
                Nature: Rash
                Posts: 81
                Well, it's better than nothing. Besides, we should be atleast able to read the script.
                __________________
                Reply With Quote
                  #8    
                Old June 21st, 2017 (4:47 AM).
                Pokenisu Pokenisu is offline
                   
                  Join Date: Jun 2017
                  Posts: 12
                  The error says: "Error de Script PokeBattle_Battle en la línea 4084 de tipo "SyntaxError""
                  Reply With Quote
                    #9    
                  Old June 21st, 2017 (6:41 AM).
                  Diverscope's Avatar
                  Diverscope Diverscope is offline
                  Pardon me
                     
                    Join Date: Apr 2013
                    Gender: Male
                    Nature: Rash
                    Posts: 81
                    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.
                    __________________
                    Reply With Quote
                      #10    
                    Old June 22nd, 2017 (5:35 AM).
                    Pokenisu Pokenisu is offline
                       
                      Join Date: Jun 2017
                      Posts: 12
                      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.
                      Reply With Quote
                        #11    
                      Old June 22nd, 2017 (5:43 AM).
                      Marin's Avatar
                      Marin Marin is offline
                      Not Bored
                         
                        Join Date: Nov 2016
                        Gender: Other
                        Posts: 624
                        Quote:
                        Originally Posted by Pokenisu View Post
                        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.
                        __________________
                        If you're looking for me, I'm on Safari Zone.
                        Reply With Quote
                          #12    
                        Old June 22nd, 2017 (6:02 AM).
                        Pokenisu Pokenisu is offline
                           
                          Join Date: Jun 2017
                          Posts: 12
                          where I have to put the end?
                          Reply With Quote
                            #13    
                          Old June 22nd, 2017 (6:31 AM).
                          Marin's Avatar
                          Marin Marin is offline
                          Not Bored
                             
                            Join Date: Nov 2016
                            Gender: Other
                            Posts: 624
                            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
                            __________________
                            If you're looking for me, I'm on Safari Zone.
                            Reply With Quote
                              #14    
                            Old June 22nd, 2017 (7:16 AM).
                            Pokenisu Pokenisu is offline
                               
                              Join Date: Jun 2017
                              Posts: 12
                              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"
                              Reply With Quote
                              Reply

                              Quick Reply

                              Join the conversation!

                              Create an account to post a reply in this thread, participate in other discussions, and more!

                              Create a PokéCommunity Account

                              Sponsored Links
                              Thread Tools

                              Posting Rules
                              You may not post new threads
                              You may not post replies
                              You may not post attachments
                              You may not edit your posts

                              BB code is On
                              Smilies are On
                              [IMG] code is On
                              HTML code is Off

                              Forum Jump


                              All times are GMT -8. The time now is 2:45 AM.