Jump to content

[E] Editing National Dex in PkHex


BloomGloom

Recommended Posts

So, I was trying to edit an Emerald save where I just had the Pokédex and a few mons.

I wanted to unlock the National Dex right there, so I opened the save with PkHex and checked the event flag "SYS_NATIONAL_DEX", but nothing happened.

Am I missing something?

Link to comment
Share on other sites

You're not wrong. Looks like PKHeX doesn't really handle that right now.

I don't think that flag in question actually unlocks the National pokédex, but rather, it's a separate flag which activates when the National dex is obtained, so that the game knows not to repeat that event/cutscene again.

There's a thing under Event Constants for National pokédex, but proper values for it haven't been documented. Save files with the National dex unlocked seem to have it set to 770, but this doesn't actually unlock the National dex when I try to do that.

For the time being, you should have better luck with this:

If PKHeX could be eventually updated to have a National Dex checkbox in the Gen. 3 Dex editor which handles setting all the appropriate flags as needed, that'd be pretty convenient.

Link to comment
Share on other sites

Well, A-Save worked... Except that it still doesn't allow trading with FRLG, which is the most important thing about the NatDex... 😢

I've tried hex editing, but every save seems to start at a different offset, so I never know where the flags are.

Link to comment
Share on other sites

Just to be completely certain, do you have the national dex unlocked in FR/LG, along with the Ruby/Sapphire post-game quest in Sevii Islands done?

Given how convoluted the National dex flags seem to be, it's not impossible that there could be another flag which no-one has noticed yet, separate from the actual National dex activation flags, to allow trading with FR/LG. So this might require more research. But it's also important to remember that FR/LG has additional requirements in order to trade with RSE, just in case that might be the problem.

Link to comment
Share on other sites

If you're able to get a clean Emerald save file pre-National dex, and make a copy of it once you unlock National dex, in the event editor in PKHeX, under the Research tab, you can load both save files in FlagDiff researcher, and it should help you figure out which flags are changed in-between both save files.

If you figure it out, it would be appreciated if you could post your findings, then hopefully everything can be properly implemented at some point.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...