• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Pokemon evole during battle

  • 10
    Posts
    13
    Years
    • Seen Mar 15, 2016
    Hi guys:

    My question is very simple, is there anyway or how can I make a pokemon evolve during the battle ??

    Thanks !!! any help will be appreciated
     
  • 76
    Posts
    8
    Years
    • Seen Oct 6, 2017
    Are you using Elite Battle?

    EDIT: Ignore the question, it's irrelevant. Working on this now.

    EDIT 2: I can't seem to figure this out. I'll leave script names and line numbers that I think would be helpful here if anyone else thinks they can do this.

    Pokemon_Evolution, line 485-516
    PokeBattle_Battle, line 2960
    PField_Field, line 1276

    I hope someone else can figure this out!
     
    Last edited:

    Zeak6464

    Zeak #3205 - Discord
  • 1,101
    Posts
    11
    Years
    this is the code that checks for evolution conditions are met:

    Spoiler:


    Now we just need to figure out were to apply it in the battle
     
  • 76
    Posts
    8
    Years
    • Seen Oct 6, 2017
    This is what I have so far, and I've hit a stump. I don't know what to do from here. Hopefully someone with more coding knowledge than me can help.

    After this line in PokeBattle_Battle:
    Code:
    pbDisplayPaused(_INTL("{1} grew to Lv. {2}!",thispoke.name,curlevel))
    Paste in all of this:
    Code:
        # Evolve
        currentlevels=thispoke.level
        pokemon=thispoke
        if pokemon && (!currentlevels[i] || pokemon.level!=currentlevels[i])
          newspecies=Kernel.pbCheckEvolution(pokemon)
          if newspecies>0
            playingBGS=$game_system.getPlayingBGS
            playingBGM=$game_system.getPlayingBGM
            # Start evolution scene
            @scene.pbRefresh
            evo=PokemonEvolutionScene.new
            evo.pbStartScreen(pokemon,newspecies)
            evo.pbEvolution
            evo.pbEndScreen
            @scene.pbRefresh
            $game_system.bgm_resume(playingBGM)
            $game_system.bgs_resume(playingBGS)
          end
        end

    Known problems so far:
    1. Pokemon name shows up during evo
    2. Pokemon isn't updated after evo.
    3. Doesn't work with Klein's evo script.
     
  • 76
    Posts
    8
    Years
    • Seen Oct 6, 2017
    Code:
    self.scene.pbChangePokemon(thispoke,thispoke.pokemon)

    I seem to get this error:
    Code:
    ---------------------------
    Pokémon Paragon
    ---------------------------
    Exception: NoMethodError
    
    Message: undefined method `pokemon' for #<PokeBattle_Pokemon:0x8910ae0>
    
    PokeBattle_Battle:2303:in `pbGainEXP'
    
    PokeBattle_Battle:2259:in `loop'
    
    PokeBattle_Battle:2318:in `pbGainEXP'
    
    PokeBattle_Battle:2121:in `each'
    
    PokeBattle_Battle:2121:in `pbGainEXP'
    
    PokeBattle_Battle:2075:in `each'
    
    PokeBattle_Battle:2075:in `pbGainEXP'
    
    PokeBattle_Battler:3600:in `pbUseMove'
    
    PokeBattle_Battler:3709:in `pbProcessTurn'
    
    PokeBattle_Battler:3708:in `logonerr'
    
    
    
    This exception was logged in 
    
    C:\Users\Tyler\Saved Games/Pokémon Paragon/errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    I also tried changing thispoke.pokemon to newspecies and then I got this error:
    Spoiler:


    EDIT: I found out the Pokemon is fixed if you enter a new battle. Also, if the Pokemon learns a move on evolving, then it won't have that move until a new battle occurs.
     
    Last edited:
  • 824
    Posts
    9
    Years
    I seem to get this error:
    Code:
    EDIT: I found out the Pokemon is fixed if you enter a new battle. Also, if the Pokemon learns a move on evolving, then it won't have that move until a new battle occurs.[/QUOTE]
    
    You can change the Pokemon mid-battle - form changes, Transform, etc.  I was trying to show the function that those effects use.
     
  • 76
    Posts
    8
    Years
    • Seen Oct 6, 2017
    You can change the Pokemon mid-battle - form changes, Transform, etc. I was trying to show the function that those effects use.

    Hmm, I tried cross-referencing that code to find other places in the script where it was used, but it took me to other lines of code that were made for completely one situation. Any other help?
     
    Back
    Top