• 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] Hidden Ability In The Wild

2
Posts
7
Years
    • Seen Dec 20, 2016
    Hi there,
    So I recently started using Pokemon essentials, and one of the many things that i wanted to was make the hidden ability appear in the wild, but say at a rate of 1/12? Is this possible?
     
    188
    Posts
    9
    Years
    • Seen May 16, 2024
    It most certainly is. In PField_EncounterModifiers, add this bit of code:
    Code:
    # Gives all wild Pokémon a 1/12 chance to have a hidden ability
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       pokemon.abilityflag=2 if rand([COLOR=Blue]12[/COLOR])==0
    }
     
    Back
    Top