• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Other] Is it possible to set a Trainer's Pokémon's ability? Well, it is, but...

  • 183
    Posts
    7
    Years
    • Seen Jan 22, 2025
    Well, I actually managed to get to change Trainer's Pokémon's abilities to what I want, that being the first, the second or the hidden one.
    but the first Pokémon that's send to battle, doesnt have any ability (checked with the debug menu from the pokemon expansion) and all the other ones do have the abilities that I want.
    and, the wild pokémon also loose their abilities... but they gain them back when i caught them

    in battle_main.c

    in the four cases (the "itemdefault" and stuff ones)
    SetMonData(&party, MON_DATA_ABILITY_NUM, &partyData.abilityNums);

    in include/data.h
    u16 abilityNums;

    in the trainer_parties.h thing
    in all pokemon for all trainers
    .abilityNums = (ability),

    the pokemon we send out also looses its ability


    What am I doing wrong?

    EDIT: Solved! something seemed to mess with battle engine v2 from dizzy eggg and this weird thing happened...
     
    Last edited:
    My native language is not English, I'd like to know how you solved the problem. I also use Dizzy Eggg's Battle_Engine_V2.
     
    My native language is not English, I'd like to know how you solved the problem. I also use Dizzy Eggg's Battle_Engine_V2.

    My native language isn't English either, but I'll just say that I deleted some important piece of the code. Because that's what I did, and when I added it back, it was all solved.
     
    Back
    Top