![]() |
Controlling What Pokemon Hatch Into (BPRE)
Does anyone know how Fire Red (BRPE) determines what Pokemon an egg will hatch into?
I ask because my Gengar eggs are hatching into Haunter and I don't know why. I added a feature recently where if a certain stone is used on certain Pokemon it will "evolve" into an alternate form. The feature works just like normal evolution, except that the Pokemon can switch back by using the stone again. The game treats this as a normal stone evolution. I think this might be the cause, because Gengar never produced Haunter before this, but I can't say for certain. If there's anything anyone knows about the breeding mechanic in Fire Red, it would help me out a lot. |
Can you read the game's THUMB code?
The majority of species determination occurs at 0x046000. Within that routine, there is a particular bl to 0x045970 which loads the evolution table and may be your issue. |
Quote:
Is there anything in particular I should know about how the table is structured? Such as how many bytes each entry takes up? I know at the offset 0x46068 is the byte of an egg that would hatch into NidoranF, (which has a 50% chance of hatching into the byte at 0x4607E or NidoranM). I tried looking at that before to see if I could find Gengar's information (or rather Gastly's, to be more precise), but I wasn't sure how that was structured either so I didn't get very far. |
Quote:
|
I did some testing and I think I know what's wrong. Since the game regards the form change as a true evolution, it thinks that the alternate form is the new third stage and the hatching is weird. I tried it with Camerupt, and no matter what I did, Camerupt just kept hatching into the "B Form" instead of Numel.
I think what I'll do is change the feature so it's only on Pokemon with no evolution to begin with. Thanks for your help though! This information might be useful later to me or someone else! :D |
| All times are GMT -8. The time now is 2:24 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.