• 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✓] Emerald Elite Four event help

  • 958
    Posts
    12
    Years
    Note: I'm not sure if this post is big enough to have it's own thread or if this belongs to the script help thread. Mods, please move this to wherever you feel it belongs.

    In the rematch system that I'm working on for Emerald, I've come across a major oversight; if you lose a battle on the first E4 run to anybody after defeating Sidney, you will get stuck in the first arena the next time you enter. Here is an example of the script. All the others are formatted the same. 0x4FB was the original flag used for the initial battle with Sidney, and has been moved to be set after the rematch (because it resets after every champion win).

    Spoiler:


    For example, when the player defeats Sidney (sets flag 0x2B1) but loses to Phoebe, he/she will become stuck at Sidney upon re-entering because 0x2B1 was not cleared, causing the script to go right to @rematch then @notagain instead of going to the trainerbattle against ID 0x105. What I would like to do is to be able to clear all of the first match flags for all four trainers (0x2B1 to 0x2B4) if the player happens to white out to anyone after defeating Sidney. Help would be greatly appreciated. Thank you!

    EDIT: Nevermind, I figured out that it was much better to check for flag 0x87F (set after the first League win) after the faceplayer command, then use 0x4FB for both of the matches. This way, the script is redirected to the rematch battle as long as the player has entered the hall of fame.
     
    Last edited:
    Back
    Top