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.

Reply
 
Thread Tools
  #1    
Old 1 Week Ago (6:34 PM). Edited 5 Days Ago 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: 551

    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 1 Week Ago (2:14 AM).
    Marin's Avatar
    Marin Marin is offline

    Not Bored

    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 424
    The name hasn't updated after evolution.
    __________________

    Reply With Quote
      #3    
    Old 1 Week Ago (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: 551
      Quote:
      Originally Posted by M3rein View Post
      The name hasn't updated after evolution.
      fixed !
      Reply With Quote
        #4    
      Old 1 Week Ago (7:55 PM). Edited 6 Days Ago by sonicfan7895.
      sonicfan7895 sonicfan7895 is offline
      Lead Programmer and Composer
         
        Join Date: Dec 2010
        Location: Akala Island, Alola
        Age: 19
        Gender: Male
        Nature: Serious
        Posts: 84
        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 6 Days Ago (4:40 PM).
        Vendily's Avatar
        Vendily Vendily is offline
           
          Join Date: Aug 2015
          Gender: Female
          Nature: Calm
          Posts: 719
          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 6 Days Ago (5:21 PM).
          sonicfan7895 sonicfan7895 is offline
          Lead Programmer and Composer
             
            Join Date: Dec 2010
            Location: Akala Island, Alola
            Age: 19
            Gender: Male
            Nature: Serious
            Posts: 84
            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
            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 9:32 PM.