• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

v21.1 Wild Hidden Ability Pokemon 21.1

This resource pertains to version 21.1 of Pokémon Essentials.
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.
Credits
Credit not required.
Author
Radboy1244
Views
48
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top