• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

The mystery of Shedinja: How is the HP stuck?

  • 853
    Posts
    4
    Years
    • Seen Nov 9, 2023
    I wan to make some changes to this pokemon but I don't understand how its HP is stuck at 1, and never grows with evs or ivs.
    I thought it was the ability that did it, but transferring the ability doesn't limit another pokemon's HP, so is something specific to shedinja.

    Its base HP stat is listed as 1.
    But talking with people and learning about how some calculations in this game are done I'm wondering if its not actually 0.

    Those that mess with exp mechanics know this already, but the game can't really process (or is built to not use the value) a 0 exp gain,
    if you set exp to 0 it will instead give you 1 exp per battle. It more or less works, but its not 0.

    Next it makes me think about what I found in another topic I made, on the formula for how Evs and Ivs translate to stats as you level,
    Hit Points:
    ( (IV + 2 * BaseStat + (EV/4) ) * Level/100 ) + 10 + Level

    Attack, Defense, Speed, Sp. Attack, Sp. Defense:
    (((IV + 2 * BaseStat + (EV/4) ) * Level/100 ) + 5) * Nature Value


    So all I can think is somehow the order for the formula isn't exactly correct and that if BaseStat could be multiplied in after everything else then it would make sense that Shedinja's Base HP is actually 0, but its just being shown as 1.

    After pulling what I could find of its data, there's no other discernable difference between other pokemon, it has a normal growth rate,
    and no weird unknown variables seem to be there.

    *Using Hex Maniac Advance to find pokemon data.

    Does anyone else have thoughts or insight on this.
     
    Yes, Pokeemerald is the decompilation of emerald.
    You can edit all the same things with decomps and binary hacking but with decomps the code/data is easier to locate and modify.

    Ok thanks. I guess I'll look go ahead and setup my decompile partition then.

    Can I decompile and recompile multiples times, throughout making edits or would that cause issue.
    And I think the last thing I would need if you know of it, is a list of the i believe they're called "functions"? is there a place to find what most of them do?

    Thanks.
     
    Ok thanks. I guess I'll look go ahead and setup my decompile partition then.

    Can I decompile and recompile multiples times, throughout making edits or would that cause issue.
    And I think the last thing I would need if you know of it, is a list of the i believe they're called "functions"? is there a place to find what most of them do?

    Thanks.

    If you're making a romhack you don't need to decompile anything, since the code is already decompiled, you just make your changes and build roms with those changes.
    There are no descriptions for each function, but most of them have pretty descriptive names and you can always read the code to see what they do.
     
    If you're making a romhack you don't need to decompile anything, since the code is already decompiled, you just make your changes and build roms with those changes.
    There are no descriptions for each function, but most of them have pretty descriptive names and you can always read the code to see what they do.

    ok thanks. that covers everything i need to get started i think.
     
    If you're making a romhack you don't need to decompile anything, since the code is already decompiled, you just make your changes and build roms with those changes.
    There are no descriptions for each function, but most of them have pretty descriptive names and you can always read the code to see what they do.


    Hey just wanted to say thanks again, I was just able to make the change I wanted to this function today.
     
    Back
    Top