- Pokémon Essentials Version
- v21.1 ✅
This is some code that i quickly put together as i couldn't find anything like this for Essentials V21.1. As the name suggest this will make it so when you encounter a wild Pokémon it has a chance to spawn with its hidden ability.
To do this in the scripts editor, scroll down to the Pokemon tab on the left and click on it then scroll down a bit inside that until you find the Ability section.
This is what it should look like https://imgur.com/a/mju9KxY
Replace this with new code:
def ability_index
@ability_index = (@personalID & 1) if !@ability_index
return @ability_index
end
New code:
def ability_index
if rand(100) > 10 #There is a 10/100 chance for hidden ability
@ability_index = (@personalID & 1) if !@ability_index
return @ability_index
else
ability_index = 2
end
end
At the moment there is a 10/100 (or 1/10) chance to find a hidden ability Pokémon but you can chance that the what every you want.
To do this in the scripts editor, scroll down to the Pokemon tab on the left and click on it then scroll down a bit inside that until you find the Ability section.
This is what it should look like https://imgur.com/a/mju9KxY
Replace this with new code:
def ability_index
@ability_index = (@personalID & 1) if !@ability_index
return @ability_index
end
New code:
def ability_index
if rand(100) > 10 #There is a 10/100 chance for hidden ability
@ability_index = (@personalID & 1) if !@ability_index
return @ability_index
else
ability_index = 2
end
end
At the moment there is a 10/100 (or 1/10) chance to find a hidden ability Pokémon but you can chance that the what every you want.
- Credits
- Credit not required.