• 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.

Make specific Pokemon not able to evolve

19
Posts
8
Years
    • Seen Sep 6, 2022
    Hey,
    I was wondering if Its possible to disable Evolution of different forms of Pokemon (e.g. Spikes eared pichu)
    Is there some function i can call in the MultipleForms Script?
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    Code:
    # Checks whether a Pokemon can evolve now. If a block is given, calls the block
    # with the following parameters:
    #  Pokemon to check; evolution type; level or other parameter; ID of the new Pokemon species
    def pbCheckEvolutionEx(pokemon)
      return -1 if pokemon.species<=0 || pokemon.isEgg?
      return -1 if isConst?(pokemon.species,PBSpecies,:PICHU) && pokemon.form==1
      return -1 if isConst?(pokemon.item,PBItems,:EVERSTONE)
      ret=-1
      for form in pbGetEvolvedFormData(pokemon.species)
        ret=yield pokemon,form[0],form[1],form[2]
        break if ret>0
      end
      return ret
    end
    Can you work it out from here... But the thing is, I didn't make this script, it was already in Essentials.
     
    Back
    Top