• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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

  • 959
    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