• 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.

Documentation of variable names (firered)

  • 9
    Posts
    14
    Days
    • Seen yesterday
    The last two questions I asked here got answered in less than twelve hours, and both times the answers worked perfectly!
    However, i have a couple more things I'm hoping to add to my rom that I could probably figure out, if only I knew what variables held what data.
    Is there documentation somewhere on that sort of thing?
    Specifically, I'm trying to make it so the levels of trainer battle pokemon scale to an extent to your team's average level, with a badge-based "minimum" level, along with shuffling the order their pokemon are set in so each playthrough their order they're sent into battle is randomized.
     
    The last two questions I asked here got answered in less than twelve hours, and both times the answers worked perfectly!
    However, i have a couple more things I'm hoping to add to my rom that I could probably figure out, if only I knew what variables held what data.
    Is there documentation somewhere on that sort of thing?
    Specifically, I'm trying to make it so the levels of trainer battle pokemon scale to an extent to your team's average level, with a badge-based "minimum" level, along with shuffling the order their pokemon are set in so each playthrough their order they're sent into battle is randomized.
    There's no documentation that would map every game concept into a decomp variable name. However, everything in the decomp is generally named after those concepts, so by looking at the name of a variable/function, you can usually tell what it's for. Conversely, you can search the repo for the names of different concepts to often find corresponding variables/functions (or comments that lead you to them). You can also look at community-made modifications to see if someone has made somewhat similar modifications that could tell you useful symbols or locations in code.

    For your idea you need to be able to read the player's levels and their badges, and you need to modify the level and order of trainer's pokemon.

    This modification from pokeemerald's wiki shows you how you can edit the levels of trainers' mons and check the player's levels. And by reading the unmodified code you can probably also figure out how to randomize the order of the trainer's mons.

    For the badges, check out this snippet of code I found by searching for "badge" in pokefirered.
     
    Back
    Top