Jump to content

Regarding the Mersenne Twister look-up table in HG/SS


Recommended Posts

Hey folks, I'm doing some research on the Mersenne Twister RNG in Heartgold which is used for generating the PIDs of eggs. I'm just doing it to understand the logic which is used here.

Right now I'm stuck with this look-up table thing. I read that about 600 numbers are generated by the twister and that there's an address for the frame counter, but where are the values stored? I tried getting a Pokémon from the daycare and compare it's PID with the number I generated externally with the given initial seed and got a match, but I don't understand where this and the next values come from in the games. The value at the address of the initial seed changes to something else after an egg is generated. Also chanigng the initial seed on game start doesn't change the outcome, so it must be stored previously, only question is where?

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...