[Gen 3] Using RNG manipulation and the Dewford Trend to Determine Feebas Tiles and Secret ID

This page summarizes the projects mentioned and recommended in the original post on /r/pokemonrng

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pokeemerald

    Decompilation of Pokémon Emerald

  • When you start a new game, the game generates the Dewford phrases (and Feebas tile seeds) from EasyChat words by making some calls to RNG, shown here in InitDewfordTrend and SeedTrendRng. To summarize (assume H16 is the upper 16 bits of the RNG seed on that advancement): It makes a call on Advance x to determine the first word, always pulled from CONDITIONS (H16 % 69) It calls RNG on Advance x+1 to determine whether the second word is from LIFESTYLE or HOBBIES (H16 & 1, LIFESTYLE if it's 1, HOBBIES if it's 0) Then it calls RNG on Advance x+2 to determine what that word will be (H16 % 45 for LIFESTYLE, H16 % 54 for HOBBIES) It calls RNG on Advance x+3 to determine whether the trendiness is increasing or decreasing (not important for this, but it's H16 & 1) It calls RNG on advance x+4 to try setting the maximum trendiness If this value is greater than 50, it calls RNG again (on advance x+5) to try setting the max trendiness. If this value is greater than 80, it calls RNG a third time (on advance x+6) to set the max trendiness (each of these calls are H16 % 98) Once it has the max trendiness (takes the result from above and adds 30, giving a max value of 127), it calls RNG to set the current trendiness (the value itself isn't really important for our purpose, but it's (H16 % (max trendiness value+1)) +30, where the max trendiness value is the value before adding 30. This value also has a max of 127) Finally, it calls RNG to set the associated Feebas seed (H16)

  • RNGThings

  • I wrote some scripts to help me find which phrases would be generated on which advances, what Feebas Seed would be associated with each phrase, and what tiles would be selected based on those seeds, which are available here (in particular for this RNG: DewfordSearcher, DewfordGenerator, and GenerateFeebasTiles). Apologies if there's any issues with them, I'm not much of a programmer, but I wanted to try to have something for this that was a bit easier to use than "keep track of everything in Pokefinder's Researcher"

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts