![]() |
SOLVED [FireRed] Questions: Comparing & National Dex
I am trying to make a script:
Check if the player has seen at least 10 PKMN in the national dex. Then if they have, give them an Old Rod. It seems to work. Script: Spoiler:
Two things I am not 100% sure about: -Is this the right way to check if it is 10 or greater? Or will this only allow it if it is exactly 10? So there is another way to compare to 10 or greater than 10? -Secondly, I had a bug in one test where even if I had seen 10, it did not work. Am I correctly checking the 8005 variable? I think special D4 writes national dex seen PKMN data there? Is it affected by something else? Thanks. :) |
Quote:
Code:
Quote:
I'm pretty sure that line nine of your script (setvar 0x8005 0x1) is meant to be altering 0x8004 to check the National Dex instead. Perhaps that's why it didn't work one time? You saw too many post-151 Pokemon so you didn't see 10 in the regional Dex. As an aside, as you're hacking FR, you're using some pretty dangerous flags. Flags above 0x900 start interferring with variables and that can cause a lot of problems. I'd strongly suggest reading this thread to learn which flags you should be using. |
Quote:
I had read about the flags, but forgot, there is a lot for me to take in the last couple of weeks of learning. :) All questions answered really great! |
| All times are GMT -8. The time now is 9:14 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.