• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Changing a Species Permanently Mid-Battle

  • 15
    Posts
    14
    Years
    • Seen Aug 9, 2016
    I'm working on a script that checks if the player's pokémon is of a substantial level to evolve, at high friendship, or holding an evolutionary stone when it level up in battle. The pokémon needs to be of a substantial friendship level for this check to occur regardless of evolution method.

    I've had difficulties actually changing the species after the check passes.
    Can I just set the species to the new one, calcstats, then refresh the sprite?
     
    Pokemon in battle (PokeBattle_Battler) are separate but connected to Pokemon in the player's party (PokeBattle_Pokemon), specifically so that the pokemon in battle can change forms without affecting the pokemon in the player's party. If you want to make the change permanent, you will need to specifically set the species on the pokemon in the player's party.

    Also, make sure the player is still allowed to cancel evolutions if they wish.
     
    Back
    Top