Skip to content

Gen3 RNG - #1171

Merged
Mysticial merged 10 commits into
PokemonAutomation:mainfrom
theastrogoth:tag/frlg-rng
Apr 13, 2026
Merged

Gen3 RNG#1171
Mysticial merged 10 commits into
PokemonAutomation:mainfrom
theastrogoth:tag/frlg-rng

Conversation

@theastrogoth

@theastrogoth theastrogoth commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Basic implementations of some RNG stuff:

  • calculate the RNG state from an initial seed and number of RNG advances
  • RNG state -> PID
  • RNG state -> IVs
  • PID -> nature, gender, ability, shininess
  • search across a range of seeds / advances

This should be sufficient for automating static/gift RNG in FRLG, but it is missing a few things relevant to random encounters (which require information about encounter slots for generating species/levels).

This also will enable an SID-setting program to read a TID from the trainer card and report what SIDs were most likely hit.

@theastrogoth theastrogoth mentioned this pull request Apr 13, 2026
@Mysticial
Mysticial merged commit 3dd5b47 into PokemonAutomation:main Apr 13, 2026
7 checks passed
@theastrogoth
theastrogoth deleted the tag/frlg-rng branch April 24, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants