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

[Other] Removing function for two trainer battles (EMERALD)

  • 55
    Posts
    3
    Years
    • Seen May 26, 2025
    Because of changes I have made I am wanting to remove the function that let's you fight two trainers in a single battle. Obviously double trainer battles (Like Amy and Liz) will remain but I would like to get rid of when two trainers encounter you from different locations.

    What would I have to alter or remove so you do not fight them at once and instead fight one after another?
     
    Because of changes I have made I am wanting to remove the function that let's you fight two trainers in a single battle. Obviously double trainer battles (Like Amy and Liz) will remain but I would like to get rid of when two trainers encounter you from different locations.

    What would I have to alter or remove so you do not fight them at once and instead fight one after another?
    I suppose the quickest way is to modify CheckForTrainersWantingBattle and break out of its for loop when the value of its numTrainers variable is 1, as opposed to the default 2.
    https://github.com/pret/pokeemerald/blob/master/src/trainer_see.c#L208
     
    Back
    Top