The PokéCommunity Forums Fan Games Game Development Scripts, Tutorials & Tools
Essentials Script Evo During Battle

Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #26    
Old September 4th, 2018 (8:24 AM).
Rumery Rumery is offline
     
    Join Date: Jul 2018
    Posts: 6
    Quote:
    Originally Posted by Venomous_Zero86 View Post
    thank so much ill try this when i get home
    What program do I use to get to that script
    Reply With Quote
      #27    
    Old September 4th, 2018 (9:11 AM).
    Vendily's Avatar
    Vendily Vendily is online now
       
      Join Date: Aug 2015
      Gender: Female
      Nature: Calm
      Posts: 772
      Quote:
      Originally Posted by Rumery View Post
      What program do I use to get to that script
      we are using a heavily modified rpg maker xp project called Pokemon essentials. Pokecommunity no longer allows linking to Essentials downloads.
      __________________
      Resources for ROM hackers has moved.

      Reply With Quote
        #28    
      Old September 4th, 2018 (10:36 AM). Edited September 7th, 2018 by SpartaLazor.
      Rumery Rumery is offline
         
        Join Date: Jul 2018
        Posts: 6
        How can I find the battle_battler script

        Quote:
        Originally Posted by Vendily View Post
        we are using a heavily modified rpg maker xp project called Pokemon essentials. Pokecommunity no longer allows linking to Essentials downloads.
        I'm using xse but I don't know how to find the battle_battler script I don't know how to get into the games battle script

        Quote:
        Originally Posted by Zeak6464 View Post

        Place on Line 2050, PokeBattle_Battle, end of def pbGainExpOne or find "# Finding all moves learned at this level" after the 2nd end

        Make sure to put this code outside of a method.
        Code:
        def name=(value)
            @name=value
          end
        Code:
                 # Finding all moves learned at this level
                  movelist=thispoke.getMoveList
                  for k in movelist
                    if k[0]==thispoke.level   # Learned a new move
                      pbLearnMove(index,k[1])
                    end
                  end
        #Evo During Battle
        newspecies=pbCheckEvolution(thispoke)#edit
                  if newspecies>0
                    pbFadeOutInWithMusic(99999){
                    evo=PokemonEvolutionScene.new
                    evo.pbStartScreen(thispoke,newspecies)
                    evo.pbEvolution
                    evo.pbEndScreen
                    if battler
                      @scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
                      battler.name=thispoke.name
                    end
                  }
                  end
        Credit:
        Vendily
        How do I get to find this
        Reply With Quote
          #29    
        Old September 4th, 2018 (11:03 AM).
        mgriffin's Avatar
        mgriffin mgriffin is offline
           
          Join Date: Apr 2014
          Posts: 138
          Quote:
          Originally Posted by Rumery View Post
          I'm using xse but I don't know how to find the battle_battler script I don't know how to get into the games battle script
          I think you might have misunderstood. XSE is a rom hacking tool, but the Game Development part of the forum is about anything but rom hacking. Mostly RPG Maker XP and Pokémon Essentials, which is what this thread is about.
          Reply With Quote
            #30    
          Old September 4th, 2018 (11:16 AM).
          Rumery Rumery is offline
             
            Join Date: Jul 2018
            Posts: 6
            So I can't get pokemon essentials
            Reply With Quote
              #31    
            Old September 6th, 2018 (3:17 AM).
            Venomous_Zero86's Avatar
            Venomous_Zero86 Venomous_Zero86 is offline
            Pokemon Chosen Ones (Coming Soon)
               
              Join Date: Mar 2016
              Gender: Male
              Posts: 113
              Quote:
              Originally Posted by Rumery View Post
              So I can't get pokemon essentials
              well if you want to make your game on ROM hacking u go to the right section for that but if u want to make your game on Pokemon essentials sorry to say the have discontinued links if u want if u have discord i can send you the link for pokemon essentials version 17 but u have to get rpgxp by yourself when am home that am out right now
              Reply With Quote
                #32    
              Old September 6th, 2018 (5:30 PM). Edited September 7th, 2018 by WolfPP.
              WolfPP's Avatar
              WolfPP WolfPP is online now
                 
                Join Date: Aug 2018
                Location: Brazil
                Gender: Male
                Nature: Jolly
                Posts: 146
                Nice! i will use.

                Cya "wait end battle to evolve"

                EDIT: Im usin a script when pokemon evolves, learn a move. Example: Decidueye learns SPIRITSHACKLE after Dantrix evolves to him.
                So, your script do not att this in battle. Can you make a class or def for that? Just a att, really

                Ty ty! :D
                Reply With Quote
                  #33    
                Old September 7th, 2018 (5:59 PM).
                Vendily's Avatar
                Vendily Vendily is online now
                   
                  Join Date: Aug 2015
                  Gender: Female
                  Nature: Calm
                  Posts: 772
                  Quote:
                  Originally Posted by WolfPP View Post
                  Nice! i will use.

                  Cya "wait end battle to evolve"

                  EDIT: Im usin a script when pokemon evolves, learn a move. Example: Decidueye learns SPIRITSHACKLE after Dantrix evolves to him.
                  So, your script do not att this in battle. Can you make a class or def for that? Just a att, really

                  Ty ty! :D
                  As you did not link to a script thread, I used the updated version from this thread to test. But I could not reproduce your results in v17.2 with the only modifications being this script and the updated evo moves.
                  I tested with both in battle stone evolution and regular exp gain evolution in a trainer battle.
                  you should check if you have the same problem with a regular evolution.
                  __________________
                  Resources for ROM hackers has moved.

                  Reply With Quote
                    #34    
                  Old September 8th, 2018 (2:53 AM).
                  WolfPP's Avatar
                  WolfPP WolfPP is online now
                     
                    Join Date: Aug 2018
                    Location: Brazil
                    Gender: Male
                    Nature: Jolly
                    Posts: 146
                    Quote:
                    Originally Posted by Vendily View Post
                    As you did not link to a script thread, I used the updated version from this thread to test. But I could not reproduce your results in v17.2 with the only modifications being this script and the updated evo moves.
                    I tested with both in battle stone evolution and regular exp gain evolution in a trainer battle.
                    you should check if you have the same problem with a regular evolution.
                    Oh, really sorry. But yearh, its that thread.

                    And i checked evolvin a ivysaur to venusaur (learns PETALDANCE) and i have the same problem: doenst show the move in battle, after evolution... Only after (win or lose).
                    Reply With Quote
                      #35    
                    Old September 8th, 2018 (9:21 AM).
                    Vendily's Avatar
                    Vendily Vendily is online now
                       
                      Join Date: Aug 2015
                      Gender: Female
                      Nature: Calm
                      Posts: 772
                      Quote:
                      Originally Posted by WolfPP View Post
                      Oh, really sorry. But yearh, its that thread.

                      And i checked evolvin a ivysaur to venusaur (learns PETALDANCE) and i have the same problem: doenst show the move in battle, after evolution... Only after (win or lose).
                      Ah there we go, our problem was that the battler was not updating. Easy peasy.
                      Code:
                                #Evo During Battle
                                newspecies=pbCheckEvolution(thispoke)#edit
                                if newspecies>0
                                  pbFadeOutInWithMusic(99999){
                                  if battler
                                    oldmoves=[]
                                    for i in 0...4
                                      oldmoves.push(battler.moves[i].id)
                                    end
                                  end
                                  evo=PokemonEvolutionScene.new
                                  evo.pbStartScreen(thispoke,newspecies)
                                  evo.pbEvolution
                                  evo.pbEndScreen
                                  if battler
                                    for i in 0...4
                                      if oldmoves[i]!=thispoke.moves[i].id
                                        battler.moves[i]=PokeBattle_Move.pbFromPBMove(self,thispoke.moves[i])
                                      end
                                    end
                                    @scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
                                    battler.name=thispoke.name
                                    
                                  end
                                }
                                end
                      this is our new in exp code. And if you are using item evolutions, replace the old one with this
                      Code:
                      ItemHandlers::BattleUseOnPokemon.addIf(proc{|item| pbIsEvolutionStone?(item)},
                         proc{|item,pokemon,battler,scene|
                           if (pokemon.isShadow? rescue false)
                             scene.pbDisplay(_INTL("It won't have any effect."))
                             next false
                           end
                           newspecies=pbCheckEvolution(pokemon,item)
                           if newspecies<=0
                             scene.pbDisplay(_INTL("It won't have any effect."))
                             next false
                           else
                             pbFadeOutInWithMusic(99999){
                                if battler
                                  oldmoves=[]
                                  for i in 0...4
                                    oldmoves.push(battler.moves[i].id)
                                  end
                                end
                                evo=PokemonEvolutionScene.new
                                evo.pbStartScreen(pokemon,newspecies)
                                evo.pbEvolution(false)
                                evo.pbEndScreen
                                if battler
                                    for i in 0...4
                                      if oldmoves[i]!=pokemon.moves[i].id
                                        battler.moves[i]=PokeBattle_Move.pbFromPBMove(self,pokemon.moves[i])
                                      end
                                    end
                                    scene.pbChangePokemon(battler,battler.pokemon)
                                    battler.name=pokemon.name
                                end
                             }
                             next true
                           end
                      })
                      __________________
                      Resources for ROM hackers has moved.

                      Reply With Quote
                        #36    
                      Old September 9th, 2018 (4:20 AM). Edited September 9th, 2018 by WolfPP.
                      WolfPP's Avatar
                      WolfPP WolfPP is online now
                         
                        Join Date: Aug 2018
                        Location: Brazil
                        Gender: Male
                        Nature: Jolly
                        Posts: 146
                        Quote:
                        Originally Posted by Vendily View Post
                        Ah there we go, our problem was that the battler was not updating. Easy peasy.
                        Code:
                                  #Evo During Battle
                                  newspecies=pbCheckEvolution(thispoke)#edit
                                  if newspecies>0
                                    pbFadeOutInWithMusic(99999){
                                    if battler
                                      oldmoves=[]
                                      for i in 0...4
                                        oldmoves.push(battler.moves[i].id)
                                      end
                                    end
                                    evo=PokemonEvolutionScene.new
                                    evo.pbStartScreen(thispoke,newspecies)
                                    evo.pbEvolution
                                    evo.pbEndScreen
                                    if battler
                                      for i in 0...4
                                        if oldmoves[i]!=thispoke.moves[i].id
                                          battler.moves[i]=PokeBattle_Move.pbFromPBMove(self,thispoke.moves[i])
                                        end
                                      end
                                      @scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
                                      battler.name=thispoke.name
                                      
                                    end
                                  }
                                  end
                        this is our new in exp code. And if you are using item evolutions, replace the old one with this
                        [/CODE]
                        Hm, i replace and give me a syntax error, maybe cause to "end". So, i put that script:

                        Code:
                                  #Evo During Battle by Zeak6464
                                  newspecies=pbCheckEvolution(thispoke)#edit
                                  if newspecies>0
                                    pbFadeOutInWithMusic(99999){
                                    evo=PokemonEvolutionScene.new
                                    evo.pbStartScreen(thispoke,newspecies)
                                    evo.pbEvolution
                                    evo.pbEndScreen
                                    if battler
                                      for i in 0...4
                                        if oldmoves[i]!=thispoke.moves[i].id
                                          battler.moves[i]=PokeBattle_Move.pbFromPBMove(self,thispoke.moves[i])
                                        end
                                      end
                                      @scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
                                      battler.name=thispoke.name
                                      
                                    end
                                  }
                                  end
                                end
                              end
                            end
                          end
                        and give me that error
                        Code:
                        ---------------------------
                        Pokemon Essentials
                        ---------------------------
                        [Pokémon Essentials version 17.2]
                        
                        Exception: NameError
                        
                        Message: undefined local variable or method `oldmoves' for #<PokeBattle_Battle:0x9c10bc8>
                        
                        PokeBattle_Battle:2014:in `pbGainExpOne'
                        
                        PokeBattle_Battle:2013:in `each'
                        
                        PokeBattle_Battle:2013:in `pbGainExpOne'
                        
                        PokeBattle_Battle:2007:in `pbFadeOutInWithMusic'
                        
                        PSystem_Utilities:142:in `pbFadeOutIn'
                        
                        PSystem_Utilities:142:in `pbFadeOutInWithMusic'
                        
                        PokeBattle_Battle:2007:in `pbGainExpOne'
                        
                        PokeBattle_Battle:1967:in `loop'
                        
                        PokeBattle_Battle:2023:in `pbGainExpOne'
                        
                        PokeBattle_Battle:1817:in `pbGainEXP'
                        Ty to help me <3

                        EDIT: Im only editin 'PokeBattle_Battle' script


                        EDITED AND SOLVED
                        OMG. Im really newbie for this. But i got it! (i forget to put in upside):
                        FORGIVE ME PLS lol
                        Code:
                                  #Evo During Battle by Zeak6464
                                  newspecies=pbCheckEvolution(thispoke)#edit
                                  if newspecies>0
                                    pbFadeOutInWithMusic(99999){
                                    if battler
                                      oldmoves=[]
                                      for i in 0...4
                                        oldmoves.push(battler.moves[i].id)
                                      end
                                    end
                                    evo=PokemonEvolutionScene.new
                                    evo.pbStartScreen(thispoke,newspecies)
                                    evo.pbEvolution
                                    evo.pbEndScreen
                                    if battler
                                      for i in 0...4
                                        if oldmoves[i]!=thispoke.moves[i].id
                                          battler.moves[i]=PokeBattle_Move.pbFromPBMove(self,thispoke.moves[i])
                                        end
                                      end
                                      @scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
                                      battler.name=thispoke.name
                                    end
                                  }
                                  end
                                end
                              end
                            end
                          end
                        Reply With Quote
                          #37    
                        Old 2 Weeks Ago (2:06 PM).
                        thepsynergist's Avatar
                        thepsynergist thepsynergist is offline
                        A Gym Leader, Kyushu Region
                           
                          Join Date: Mar 2009
                          Location: California, USA
                          Age: 28
                          Gender: Male
                          Nature: Adamant
                          Posts: 759
                          Heya, just wanted to let you know, this script is amazing. I'm currently using it for my Vinemon game, but I had a quick question I'm hoping can be answered...

                          I'm using this in tandem with EBS, however, after the battle is complete, the overworld music doesn't play.
                          Moving into another route or using an event command to restart the music works, but what can I do to resume the overworld music after the battle in which a Pokemon evolves?
                          __________________




                          Pokemon Pyrite is now complete, check out the trailer/download link here: https://www.youtube.com/watch?v=X6g5pXPXyV4
                          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
                          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 7:06 AM.