• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] Complete pokedex opens door scripting help

  • 6
    Posts
    2
    Years
    • Seen Oct 3, 2023
    Hello I am on making a rom hack for fire red, would anyone know any scripting that would help me please, my end goal to end the game is to make the completed pokedex open a door to go into another room, would anybody know of a script that would do this? Many thanks
     
    Hello I am on making a rom hack for fire red, would anyone know any scripting that would help me please, my end goal to end the game is to make the completed pokedex open a door to go into another room, would anybody know of a script that would do this? Many thanks

    You can use special 0xD4 to get pokedex counts in any script. It sets 0x8005 to seen pokemon and 0x8006 to caught ones. It uses the kanto dex if 0x8004 is set to 0, or the nat dex if not.
    After that just use an if.compare to branch your script into opening the door.
    You could also just use special 0x1B0 to check if the pokedex is full, but the above special would let you check for any specific number of obtainable pokemon in your hack.

    If this doesn't make sense to you then I strongly suggest just reading a full scripting tutorial before trying anything like this: https://www.pokecommunity.com/showthread.php?p=9705656
     
    Thank you so much for your reply and help I will try this out Thank you
     
    Back
    Top