Our great sponsors
-
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.
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)
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"
Related posts
- [pokeemerald] Figured out how to make running a toggle like newer games instead of having to hold B all the time
- Gba development
- Future updates to EE?
- So I made a TON of changes to Route 2 on Fire Red and after saving I can no longer open the rom? I don't know why it's doing this so I'm wondering if anyone here knows?
- Translating Pokémon Fire Red