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

[Scripting Question] Evolution with Ability

1
Posts
5
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?
     
    295
    Posts
    6
    Years
    • Seen Aug 15, 2022
    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.
     
    180
    Posts
    6
    Years
    • Seen Apr 15, 2024
    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