• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

[Script✓] [Emerald] Some trainer battles won't start, acting like I already beat a trainer that I never fought, before, in a save file.

  • 136
    Posts
    5
    Years
    • Seen Dec 31, 2024
    HOW TO FIX: I found out after testing: Trainer flags range from 0x500 to 0x830ish. So by math, Trainer 0x328 needs her flag cleared in order to "re−battle" her. And that flag is 0x828. Decrease the first digit by 5.

    So, here's a script:
    Spoiler:

    But no matter what, if one talks to the trainer or get in her line of sight, she will not initiate a battle, and will act like they already defeated her, even through restarting the playthrough of the in−progress ROM hack. Even if the ROM developer use a green script tile and force a trainer battle that way, Trainer 0x328 just does not start the battle.
    This is due to the flag 0x828 already being set. Use "clearflag 0x828" so that Trainer 0x328 battles you again.

    Notes:
    − Other Frontier superbosses did not have this problem, only Greta.
    − You cannot copy the offset for Greta's team into a different trainer because Gen 3 Tools assumes you're looking for free space.
    − Each trainer has a flag in the game's data, ranging from 0x500 to 0x830ish; they correspond to the ID of the trainer + 500.

    Other Greta Script:
    Spoiler:


    Sorry for posting many threads in quick succession; I am new to ROM hacking.
     
    Last edited:
    Back
    Top