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: 11
    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).
    M3rein's Avatar
    M3rein M3rein is offline
    Not Bored
    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 417
    http://pokemonessentials.wikia.com/wiki/Tutorial:Last_sent_out_pokemon_BGM
    __________________
    Reply With Quote
      #3    
    Old June 19th, 2017 (12:20 PM).
    Pokenisu Pokenisu is offline
       
      Join Date: Jun 2017
      Posts: 11
      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: 11
        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: 71
          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: 11
            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: 71
              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: 11
                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: 71
                  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: 11
                    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).
                    M3rein's Avatar
                    M3rein M3rein is offline
                    Not Bored
                    • Moderator
                     
                    Join Date: Nov 2016
                    Location: The Netherlands
                    Gender: Male
                    Nature: Bashful
                    Posts: 417
                    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.
                    __________________
                    Reply With Quote
                      #12    
                    Old June 22nd, 2017 (6:02 AM).
                    Pokenisu Pokenisu is offline
                       
                      Join Date: Jun 2017
                      Posts: 11
                      where I have to put the end?
                      Reply With Quote
                        #13    
                      Old June 22nd, 2017 (6:31 AM).
                      M3rein's Avatar
                      M3rein M3rein is offline
                      Not Bored
                      • Moderator
                       
                      Join Date: Nov 2016
                      Location: The Netherlands
                      Gender: Male
                      Nature: Bashful
                      Posts: 417
                      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
                      __________________
                      Reply With Quote
                        #14    
                      Old June 22nd, 2017 (7:16 AM).
                      Pokenisu Pokenisu is offline
                         
                        Join Date: Jun 2017
                        Posts: 11
                        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

                        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 12:04 AM.