• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] More ability’s per Pokémon script ?

4
Posts
3
Years
    • Seen Mar 17, 2022
    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 !!?
     

    StCooler

    Mayst thou thy peace discover.
    9,301
    Posts
    4
    Years
    • Seen today
    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:
    Code:
    module PokemonSpeciesData
    and find the function:
    Code:
      def self.optionalValues(compilingForms = false)
    Inside that function, find the line:
    Code:
          "Abilities"           => [SpeciesAbilities,        "eE", :PBAbilities, :PBAbilities],
    and replace it with this:
    Code:
          "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.
     
    1,406
    Posts
    10
    Years
    • Seen today
    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.
     
    4
    Posts
    3
    Years
    • Seen Mar 17, 2022
    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 😁😁
     
    4
    Posts
    3
    Years
    • Seen Mar 17, 2022
    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
     

    StCooler

    Mayst thou thy peace discover.
    9,301
    Posts
    4
    Years
    • Seen today
    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.
     
    Back
    Top