• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Scripting Question] Evolution with Ability

  • 1
    Posts
    6
    Years
    • Seen Jan 4, 2019
    Is it possible to make a Pokemon only evolve if it has one of it's two Abilities?

    Say X Pokemon has Cute Charm/Defiant as it's abilities. I want to evolve at level 30, but only if it has Defiant.

    Is this possible, if so, how would i go about adding it?
     
    Is it possible to make a Pokemon only evolve if it has one of it's two Abilities?

    Say X Pokemon has Cute Charm/Defiant as it's abilities. I want to evolve at level 30, but only if it has Defiant.

    Is this possible, if so, how would i go about adding it?

    You can find in Pokemon_Evolution, there are many functions and you can add code for custom evolution.
     
    I actually do the code for my game. To add it, is the same thing like any other evo method, I suppose that you know how to add it:
    module PBEvolution
    Ability1 = 36
    Ability2 = 37
    HiddenAbility = 38

    EVONAMES=["Ability1","Ability2","HiddenAbility"]

    And under:
    when PBEvolution::Beauty # Feebas
    return poke if pokemon.beauty>=level
    when PBEvolution::Trade, PBEvolution::TradeItem, PBEvolution::TradeSpecies
    return -1
    Add:
    when PBEvolution::Ability1
    return poke if pokemon.level>=level && pokemon.abilityIndex==0
    when PBEvolution::Ability2
    return poke if pokemon.level>=level && pokemon.abilityIndex==1
    when PBEvolution::HiddenAbility
    return poke if pokemon.level>=level && pokemon.abilityIndex==2

    Sorry my bad English, I talk Spanish.
     
    Last edited:
    Back
    Top