StCooler

Seen 1 Hour Ago
Posted 2 Days Ago
1,072 posts
1.1 Years
I’ve been trying to find a way to give Pokémon more ability options but I can’t figure it out. Right now I can give them 2 abilities and 4 hidden abilities, can someone please help me out !!?
Wooow you're in for a long run.
It's easy to change the compiler so that it registers more abilities. Go to the file Misc_Data, find the module:
module PokemonSpeciesData
and find the function:
  def self.optionalValues(compilingForms = false)
Inside that function, find the line:
      "Abilities"           => [SpeciesAbilities,        "eE", :PBAbilities, :PBAbilities],
and replace it with this:
      "Abilities"           => [SpeciesAbilities,        "eEEE", :PBAbilities, :PBAbilities, :PBAbilities, :PBAbilities],
The encoding is as follows. The first "e" says that it requires a ability ("e" means it requires a constant, of the type PBAbilities). The triple "EEE" say that you can add up to three more abilities ("E" means it takes an optional constant, of the type given in the rest of the list, here PBAbilities).

Now, I wouldn't recommend you change the number of abilities. Because the WHOLE Essentials framework is based on having at most TWO natural abilities (I don't know why they allow four hidden abilities though). It requires more study, but at least look for all instances of SpeciesAbilities (this is the way to access the abilities of the Pokémon as stored in the PBS file), and you see that loops or indices refer to the hard-coded number 2. Or look at the function abilityIndex, which converts the personal ID f the Pokémon into an ability number, you'll have to change that too.
What I mean is, you're going to have a looot of things to change, and you will likely break stuff. Unless you're very confident and know exactly where to look, I suggest you do an alternative.

My alternative is the following (it's the one that I used in my game, it's probably not perfect but still something to consider in my opinion).
Depending on the Pokémon, I would do one of these:
  • If the Pokémon has an ability that I find useless (e.g. Run Away for Raticate), I would plainly replace it with my new ability.
  • If the Pokémon has three good abilities, or an ability that seems "tied" to them (e.g. Levitate for Hydreigon), I would make a new form for that Pokémon. Maybe just a recolor (cause I'm no artist), so that the player knows that the current Hydreigon they're seeing is not the same Hydreigon they are used to, and maybe this difference lies in their ability.
Male
Online now
Posted 12 Hours Ago
697 posts
7.1 Years
Do you really need more than 6 abilities per Pokemon? Six already seems excessive to me. I agree with StCooler, it sounds like youre better off making new forms or something.

Imo, the Pokemon that are locked into one or two abilities, but have a really strong gimmick and gameplay style are better anyway. It allows you to hone in on what makes them unique and interesting. A Pokemon with 6+ abilities just sounds like you have no real theme for the species and youre just throwing anything at the wall to see if it sticks.

StCooler

Seen 1 Hour Ago
Posted 2 Days Ago
1,072 posts
1.1 Years
Thanks for the information and feedback STCooler seems like you really know what your talking about I’m gonna look more into this , unless you could tell me more on how to do that 😁😁
My point was to show you why you shouldn't do that (too complicated, too dangerous) and what work around you can use... ^^"

And lucidious I get what your saying but there are certain species I would like to have more options just to give my game a little more variety and just for fun purposes lol
Making new forms allows you more variety than abilities I believe. New Pokémons are kind of the main appeal of fangames.