• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[ASM & Hex] Trainer flags and expanding the trainer table

  • 42
    Posts
    3
    Years
    I've been working on my hack and I'm wanting to double the amount of trainers in my hack to 1,486. It's the trainer flags concept that I can't figure out. I understand regular flags but not trainer flags. I read this tutorial here but I can't figure out the values to change where the trainer flags start and I can't figure out how to calculate the total flags values I need to hex edit them. I'm using JPAN's patch which removes all the vanilla events(to my understanding that frees up all the event flags plus any unused vanilla flags) and I'm using the CFRU to expand my total flags so 0x0 - 0x18FF is what I'm working with. I've documented every flag the CFRU uses and I'm not sure if I can change the flag numbers the CFRU uses so I can put them towards the end of the usable range(I haven't tried but I guess I could try to change the numbers in the config file). Am I looking at the trainer flags wrong? Are they still regular flags? Or are they special flags that need to be recalculated with the expanded trainer table? Are they used the same as set flag or clear flag in regular scripts? Are they associated with how the game keeps track of which trainers you beat? I'm so lost it's unbelievable, I could also just be overthinking the concept. I appreciate anyone who can help me understand 😀.
     
    Last edited:
    Back
    Top