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

[Script] Emerald US Version - Opponent Party Size Location in WRAM?

  • 1
    Posts
    3
    Years
    • Seen May 1, 2021
    I have found some decompiled memory maps for Emerald online that list these as the party count locations in WRAM:

    #define PLAYER_PARTY_COUNT 0x20244E9 // 1 byte
    #define OPPONENT_PARTY_COUNT 0x20244EA // 2 bytes

    From my testing, the location for the player's party count is correct, but the following 2 bytes are always 0 no matter how large the enemy's team is.

    I've taken snapshots of memory when battling 1, 2, 3, and 4 party teams, and I haven't been able to find any addresses that correspond to the enemy team's size.

    What is normally done to find out how many pokemon to read from the enemy's party location?
     
    Back
    Top