- Pokémon Essentials Version
- v17.2 ✅
Have you ever wanted to make wild Pokémon have their Hidden Ability, but not by event, or adding it in the PBS alongside their normal abilities? To have a smaller chance of finding the ability?
Well, looks like I have the thing for you. It's a really simple code, but it's easy to modify the percentage to make it easier or harder to obtain.
Post the following code at the bottom of PField_EncounterModifiers:
The way to change the percentage is via the if rand(x) < 1 line. In the above code it makes it so you have a 5% chance of finding a Hidden Ability, because 1/20 is 5%. You could make it < 2 and make it 2/20. It's just a tiny bit of math. Hope this helps some people!
Well, looks like I have the thing for you. It's a really simple code, but it's easy to modify the percentage to make it easier or harder to obtain.
Post the following code at the bottom of PField_EncounterModifiers:
Code:
# Make all wild Pokémon have a chance to have their hidden ability.
Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
if rand(20) < 1
pokemon.setAbility(2)
end
}
- Credits
-
To Scyl and NettoHikari for helping me figure all this out, with a little input from Marin.
Likes:
WolfPP and TechSkylander1518