- 37
- Posts
- 8
- Years
- Seen Jan 21, 2021
Was trying to implement this from an thread using v17 here: (broken link removed)
Thinking this may work in PField_EncounterModifiers:
Or should I swap "Ability" or "2" with "HiddenAbil"? Also wondering what ways to test that it works are other than catching ~20 Pokemon until finding one with it.
Thinking this may work in 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
}
Or should I swap "Ability" or "2" with "HiddenAbil"? Also wondering what ways to test that it works are other than catching ~20 Pokemon until finding one with it.