• 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!
  • 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] E4 flag questions

TheRabbit

Banned
  • 69
    Posts
    10
    Years
    • Seen Jan 1, 2015
    I'm trying to script a couple of things I that I want to happen after the E4 is beaten (on FireRed).

    1) Where in the world can I place the setflags? For example, I want to move the setflag that opens the Cerulean Cave to when the E4 is beaten, but neither of the last 2 rooms are showing any editable scripts.

    2) How do I distinguish between trips through the E4? I want certain events to happen after beating it the first time, then different events to trigger after the second time.
     
    1) Setflags don't work like that. Setflags are just there to tell the game, if a script happened or not. So you probably want to use setmaptile, if that's the problem. Or use warps.

    2) This is where you would use setflags, mainly on the script after the Champion, saves time. Just have a few checkflags, to distinguish the first, second time etc.

    EDIT: Just realized what you meant by the first question.*facepalm
    Just add it before the Hall of Fame. It's easy, Cerulean Cave should open by itself, just remove the setflag for when it opens orignally, I believe by Oak.
     
    Last edited:
    1) Setflags don't work like that. Setflags are just there to tell the game, if a script happened or not. So you probably want to use setmaptile, if that's the problem. Or use warps.

    2) This is where you would use setflags, mainly on the script after the Champion, saves time. Just have a few checkflags, to distinguish the first, second time etc.

    EDIT: Just realized what you meant by the first question.*facepalm
    Just add it before the Hall of Fame. It's easy, Cerulean Cave should open by itself, just remove the setflag for when it opens orignally, I believe by Oak.

    I can't though...that's why I'm asking. In the last 2 rooms (champion battle and hall of fame), the scripts are not view-able or editable. So where do I put it?
     
    I can't though...that's why I'm asking. In the last 2 rooms (champion battle and hall of fame), the scripts are not view-able or editable. So where do I put it?

    They are level scripts. So when you enter the room, it'll start the script. So you should find it there. :)
     
    You can go to the Header > Map script. The vs. gary battle address is this:
    162B76 and champion room this: 162D70
     
    Back
    Top