• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Cancel all abilities

  • 5
    Posts
    5
    Years
    • Seen Aug 8, 2024
    Hello, I've done some scripting before but I'm not exactly sure how simple or difficult this would be. I basically only want mega pokemon to have abilities in my game and no other pokemon, but instead of going through and changing every pokemon in the pbs, id rather have a script that runs through the start of each battle, or just during the game as a whole that says "unless youre so-so pokemon, then ignore ability" I just wouldn't know what that would look like or where to put it. Would anyone be able to help me out? :)
     
    I guess you want to edit the hasWorkingAbility? function.

    So by that do you mean where its defined?
    Spoiler:
    if so would I maybe be adding a check right before the other checks that says "and is mega Charizard, mega blastoise, so on"? since I only want the pokemon that are mega evolved to have abilities?
     
    Check how I did Neutralizing Gas (and yep, need to be improved but I think you can use for what you want)
    I'm not at my computer right now to test it, but are you saying where you put the const check for neutralizing gas is where I would put a check for the specific Pokémon?
     
    So im not sure how to check a species, but I did see this a few lines down
    Spoiler:

    and was wondering if this is about what I would be using? and maybe plug it in, but do a check for if its not the species then to return false? so something like
    Spoiler:

    and then i just make a list of the pokemon that i want to have abilities and the others will return false and not have an ability? would it be that easy? lol
     
    Back
    Top