• 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!
  • 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
    8
    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?
     
    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