• 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!
  • 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
    4
    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