Scripts & Tutorials 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.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old August 10th, 2017 (6:34 PM). Edited August 14th, 2017 by Zeak6464.
Zeak6464's Avatar
Zeak6464 Zeak6464 is offline
The Cold Guy
     
    Join Date: Mar 2013
    Location: USA
    Age: 24
    Gender: Male
    Nature: Calm
    Posts: 574

    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
    Reply With Quote

    Relevant Advertising!

      #2    
    Old August 12th, 2017 (2:14 AM).
    Marin's Avatar
    Marin Marin is online now
    Not Bored
    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 595
    The name hasn't updated after evolution.
    __________________
    Reply With Quote
      #3    
    Old August 12th, 2017 (6:17 PM).
    Zeak6464's Avatar
    Zeak6464 Zeak6464 is offline
    The Cold Guy
       
      Join Date: Mar 2013
      Location: USA
      Age: 24
      Gender: Male
      Nature: Calm
      Posts: 574
      Quote:
      Originally Posted by M3rein View Post
      The name hasn't updated after evolution.
      fixed !
      Reply With Quote
        #4    
      Old August 13th, 2017 (7:55 PM). Edited August 14th, 2017 by sonicfan7895.
      sonicfan7895's Avatar
      sonicfan7895 sonicfan7895 is offline
      Lead Programmer and Composer
         
        Join Date: Dec 2010
        Location: Akala Island, Alola
        Age: 20
        Gender: Male
        Nature: Serious
        Posts: 85
        It works for the most part, but then after the evolution sequence happens, I get an error, and the Pokemon that evolved gained even more experience. Here's how the code appears in my game:

        Click here to see.

        So, what should I do? I set it so it's after the second "end"...
        __________________
        Check out my band: xSOBERDOSE!
        On Facebook

        Currently working on my short story, set in-between the events of Colosseum and XD, Orre's Return! Check out the thread by clicking on the highlighted words!

        My favorite video game: Jade Cocoon 2!
        Favorite Monster from Jade Cocoon 2: Delapon or Frogess
        Favorite Move from Jade Cocoon 2: Dark Impact
        Reply With Quote
          #5    
        Old August 14th, 2017 (4:40 PM).
        Vendily's Avatar
        Vendily Vendily is online now
           
          Join Date: Aug 2015
          Gender: Female
          Nature: Calm
          Posts: 731
          Did you also add the bit for the def name=?
          Code:
          class PokeBattle_Battler
            def name=(value)
              @name=value
            end
          end
          put this outside of any class or method. OR put just this:
          Code:
            def name=(value)
              @name=value
            end
          in script section PokeBattle_Battler inside the class (preferably underneath def name, but that's just for organization)

          I would have liked to see the error though, as that's the only error I got while making it.
          __________________
          Resources for ROM hackers has moved.

          Reply With Quote
            #6    
          Old August 14th, 2017 (5:21 PM).
          sonicfan7895's Avatar
          sonicfan7895 sonicfan7895 is offline
          Lead Programmer and Composer
             
            Join Date: Dec 2010
            Location: Akala Island, Alola
            Age: 20
            Gender: Male
            Nature: Serious
            Posts: 85
            Well I'll be... It worked! Sorry about that.

            The OP should be edited so other people can know that the code that can be put in PokeBattle_Battler works too. If you would still like to see the error anyway, I can edit this post so you can get a better idea of what people should be doing
            __________________
            Check out my band: xSOBERDOSE!
            On Facebook

            Currently working on my short story, set in-between the events of Colosseum and XD, Orre's Return! Check out the thread by clicking on the highlighted words!

            My favorite video game: Jade Cocoon 2!
            Favorite Monster from Jade Cocoon 2: Delapon or Frogess
            Favorite Move from Jade Cocoon 2: Dark Impact
            Reply With Quote
              #7    
            Old August 29th, 2017 (7:19 AM). Edited August 29th, 2017 by Berkin.
            Berkin's Avatar
            Berkin Berkin is offline
               
              Join Date: Jul 2016
              Location: The Netherlands
              Gender: Male
              Nature: Brave
              Posts: 123
              Can you help me? What do you mean with outside a method?
              __________________
              Friendcode: 1349-9203-3458
              Friend safari Type: Dragon
              Flaxure, Dragonair, Druddigon

              Stay Cool.

              Reply With Quote
                #8    
              Old August 29th, 2017 (6:23 PM).
              Vendily's Avatar
              Vendily Vendily is online now
                 
                Join Date: Aug 2015
                Gender: Female
                Nature: Calm
                Posts: 731
                Quote:
                Originally Posted by Berkin View Post
                Can you help me? What do you mean with outside a method?
                As in don't do this:
                Code:
                def randomMethod
                  #code
                  def name=(value)
                    @name=value
                  end
                end
                method in method.
                __________________
                Resources for ROM hackers has moved.

                Reply With Quote
                  #9    
                Old August 30th, 2017 (10:29 AM).
                Berkin's Avatar
                Berkin Berkin is offline
                   
                  Join Date: Jul 2016
                  Location: The Netherlands
                  Gender: Male
                  Nature: Brave
                  Posts: 123
                  Could you pls send me a screenshot of how your scripts are placed I have no idea where to put them.
                  __________________
                  Friendcode: 1349-9203-3458
                  Friend safari Type: Dragon
                  Flaxure, Dragonair, Druddigon

                  Stay Cool.

                  Reply With Quote
                    #10    
                  Old August 30th, 2017 (4:59 PM).
                  Vendily's Avatar
                  Vendily Vendily is online now
                     
                    Join Date: Aug 2015
                    Gender: Female
                    Nature: Calm
                    Posts: 731
                    Quote:
                    Originally Posted by Berkin View Post
                    Could you pls send me a screenshot of how your scripts are placed I have no idea where to put them.
                    PokeBattle_Battler:

                    PokeBattle_Battle:
                    __________________
                    Resources for ROM hackers has moved.

                    Reply With Quote
                      #11    
                    Old August 31st, 2017 (5:14 AM).
                    Berkin's Avatar
                    Berkin Berkin is offline
                       
                      Join Date: Jul 2016
                      Location: The Netherlands
                      Gender: Male
                      Nature: Brave
                      Posts: 123
                      omg it works THANK YOU SO MUCH. IT HAS BEEN MY DREAM TO MAKE POKEMON EVOLVE DURING BATTLES THANK YOU
                      __________________
                      Friendcode: 1349-9203-3458
                      Friend safari Type: Dragon
                      Flaxure, Dragonair, Druddigon

                      Stay Cool.

                      Reply With Quote
                        #12    
                      Old 5 Days Ago (3:35 PM).
                      tutoriando tutoriando is offline
                         
                        Join Date: Aug 2017
                        Location: Porto Alegre, Brasil
                        Gender: Male
                        Nature: Docile
                        Posts: 5
                        WOOOOOOW very nice, I'will install NOW!!
                        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 7:42 AM.