• 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!
  • Scottie, Todd, Serena, Kris - 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.

[Other] Flags

  • 8
    Posts
    10
    Years
    • Seen May 6, 2015
    I'm trying to create an event where you cannot pass into a cave until you have the pokedex. I was thinking of a person event. I've tried looking at tutorials for flags but i can't seem to find one with my idea in mind. I'm using XSE as my scripting program and rom is LeafGreen. Help!
     
    Why use LeafGreen? ): FR is much more documented and used much more often.

    But basically:

    <start of script>
    checkflag 0x829
    if 0x1 goto @GOTDEX

    <script continues if you don't>

    Since you're using a person event, your @GOTDEX string will probably have the guy moving away and disappearing, so he's no longer blocking the entrance.

    If you're looking for a XSE tutorial -> try this one.
     
    You should learn how to level script there are lots of tutorials for that.
    It doesnt use a flag but a variable after that you could create events that forbid the character when entering. The lazy way to do a block is to put a person on the cave entrance and make a simple flag that checks if the pokedex flag was activated..
     
    Or if the sprite you have is supposed to disappear without the need of a separate script in order to save room, is to simple place the Pokedex flag as the sprite's person id. Then once you give the pokedex the sprite is automatically hidden(as long as you have the script on a separate map)
     
    Back
    Top