r/Gameshark • u/Beta382 • Aug 01 '24
I Have a Code [Pokemon R/S/E/FR/LG] Egg Modifier: Customize Species, Personality Value (Shininess, Nature, etc.), Individual IVs, and Learned Moves of Hatched Eggs
A couple days ago I made a post with some codes I had written, and someone asked if the Encounter Modifier also affected eggs. It didn't (or rather, it would probably cause things to glitch badly), so I said as much, and added that it looked possible to modify eggs, but that I wasn't interested in looking into it much further.
Well, after looking at it just a bit, I realized that the code that handles egg hatching offers a few points of customization that standard wild encounters don't. Namely, individual IVs and moves. Additionally, due to the nature of how eggs are generated, there is total leniency in how much you can customize a Pokemon's Personality Value and IVs and the Pokemon still be considered "legal". So that piqued my interest, and I ended up creating the Egg Modifier codes below.
Egg Modifier
This cheat makes your egg hatches (specifically when they hatch, not when you receive them) have the attributes you specify in the code. You can customize species (see notes below regarding Ruby and Sapphire), Personality Value (which controls gender, ability, nature, shininess, Unown form, and Wurmple evolution), individual IVs, and learned moves. If you don't care about shininess, Unown form, or Wurmple evolution, I've provided cheat sheets for customizing your Personality Value for gender, ability, and nature. If you do care about shininess, Unown form, or Wurmple evolution, instead read the "Custom Personality Value" section at the bottom.
Capability comparison to the Encounter Modifier cheat:
- Modify individual IVs (can target a specific Hidden Power, or set 0 ATK for special attackers)
- Modify learned moves
- Greater range of "legal" Pokemon generation (any Personality Value and IV combination is legal, though for legality you're of course restricted to hatchable Pokemon with moves they can actually learn)
- Modify level (it's hardcoded at 5)
Master Code/Hook
This is required, even in emulators, to make the "Egg Modifier" cheat code work properly. It is incompatible with any Codebreaker cheat code other than "Egg Modifier".
Ruby EN v1.0
0000B138 000A
10042950 0007Ruby EN v1.1
00007D44 000A
10042970 0007Ruby EN v1.2
00002423 000A
10042970 0007Sapphire EN v1.0
000056D0 000A
10042950 0007Sapphire EN v1.1
00000B86 000A
10042970 0007Sapphire EN v1.2
0000EAB8 000A
10042970 0007Emerald EN
00006FA7 000A
10071410 0007FireRed EN v1.0
000014D1 000A
10046CBA 0007FireRed EN v1.1
00005E18 000A
10046CCE 0007LeafGreen EN v1.0
00000554 000A
10046CBA 0007LeafGreen EN v1.1
0000E673 000A
10046CCE 0007Master Code/Hook (UNSAFE)
Ruby and Sapphire have UNSAFE variants of the Egg Modifier. It is not possible to override the hatched Pokemon's species from within the "Create Hatched Pokemon" function in these games like it is in the other Gen 3 games, so the UNSAFE variants instead hook into the "Create Pokemon" function that "Create Hatched Pokemon" uses for part of its logic. However, this "Create Pokemon" function is also used for all other times a Pokemon is created, such as wild encounters, scripted encounters (e.g. receiving pokemon or eggs directly from an NPC), fishing, static encounters, and even initial creation of an egg at the daycore (as opposed to hatching). If the code is active for any of these scenarios, it will result in undefined behavior and probably cause your game to glitch out or even crash.
When using the UNSAFE Egg Modifier, ideally just turn the cheat on right before the egg will hatch, hatch it, and then be done. Ensure that no Pokemon that can create an egg are in the daycare, and don't enter any encounters.
This is required, even in emulators, to make the "UNSAFE Egg Modifier" cheat code work properly. It is incompatible with any Codebreaker cheat code other than "UNSAFE Egg Modifier".
Ruby EN v1.0
0000B138 000A
1003A82A 0007Ruby EN v1.1
00007D44 000A
1003A82A 0007Ruby EN v1.2
00002423 000A
1003A82A 0007Sapphire EN v1.0
000056D0 000A
1003A82A 0007Sapphire EN v1.1
00000B86 000A
1003A82A 0007Sapphire EN v1.2
0000EAB8 000A
1003A82A 0007Code
You may choose to omit lines that override things you don't care about, unless otherwise noted in the legend below. The blank lines are purely to help visually separate the sections of the code.
Ruby/Sapphire EN (all versions)
NO SPECIES OVERRIDE (see UNSAFE version)
83007D9E xxxx
83007D9C xxxx
33007DB0 00xx
33007DB4 00xx
33007DB8 00xx
33007DC0 00xx
33007DC4 00xx
33007DBC 00xx
83007DA8 xxxx
83007DAA xxxx
83007DAC xxxx
83007DAE xxxxEmerald EN + FireRed/LeafGreen EN (all versions)
83007DBC xxxx
83007D86 xxxx
83007D84 xxxx
33007D98 00xx
33007D9C 00xx
33007DA0 00xx
33007DA8 00xx
33007DAC 00xx
33007DA4 00xx
83007D90 xxxx
83007D92 xxxx
83007D94 xxxx
83007D96 xxxxCode (UNSAFE)
Ruby/Sapphire EN (all versions)
83007D32 xxxx
83007D6A xxxx
83007D68 xxxx
33007DB0 00xx
33007DB4 00xx
33007DB8 00xx
33007DC0 00xx
33007DC4 00xx
33007DBC 00xx
83007DA8 xxxx
83007DAA xxxx
83007DAC xxxx
83007DAE xxxxLegend
For each version of the code, the lines override these attributes in the following order:
Species (Ruby/Sapphire: only available with UNSAFE code)
Personality Value High halfword (Nature if using the cheat sheets)
Personality Value Low halfword (Gender/Ability if using the cheat sheets)
HP IV
Attack IV
Defense IV
Special Attack IV
Special Defense IV
Speed IV
Move 1
Move 2
Move 3
Move 4Species
xxxx = [Pokemon Species ID](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_index_number_(Generation_III)) in hexadecimal
Note: This stops directly correlating with the Pokedex Number after Celebi.
Personality Value High Halfword
xxxx = the upper half of the Personality Value (e.g. for a Personality Value 0x12345678, the portion 0x1234)
You can use the cheat sheet below for a simple Nature override, or use a custom generated Personality Value. If you use the cheat sheet, you MUST also supply the lower half of the Personality Value based on the cheat sheet for the Gender/Ability code, and match the ability, otherwise it won't work.
Nature Cheat Sheet
| ID# | Nature | Ability 1 value | Ability 2 value |
|---|---|---|---|
| 0 | Hardy | 0x0000 | 0x0180 |
| 1 | Lonely | 0x0010 | 0x0190 |
| 2 | Brave | 0x0020 | 0x01A0 |
| 3 | Adamant | 0x0030 | 0x01B0 |
| 4 | Naughty | 0x0040 | 0x01C0 |
| 5 | Bold | 0x0050 | 0x01D0 |
| 6 | Docile | 0x0060 | 0x01E0 |
| 7 | Relaxed | 0x0070 | 0x01F0 |
| 8 | Impish | 0x0080 | 0x0200 |
| 9 | Lax | 0x0090 | 0x0210 |
| 10 | Timid | 0x00A0 | 0x0220 |
| 11 | Hasty | 0x00B0 | 0x0230 |
| 12 | Serious | 0x00C0 | 0x0240 |
| 13 | Jolly | 0x00D0 | 0x0250 |
| 14 | Naive | 0x00E0 | 0x0260 |
| 15 | Modest | 0x00F0 | 0x0270 |
| 16 | Mild | 0x0100 | 0x0280 |
| 17 | Quiet | 0x0110 | 0x0290 |
| 18 | Bashful | 0x0120 | 0x02A0 |
| 19 | Rash | 0x0130 | 0x02B0 |
| 20 | Calm | 0x0140 | 0x02C0 |
| 21 | Gentle | 0x0150 | 0x02D0 |
| 22 | Sassy | 0x0160 | 0x02E0 |
| 23 | Careful | 0x0170 | 0x02F0 |
| 24 | Quirky | 0x0180 | 0x0300 |
Personality Value Low Halfword
xxxx = the lower half of the Personality Value (e.g. for a Personality Value 0x12345678, the portion 0x5678).
You can use the cheat sheet below for a simple Gender/Ability override, or use a custom generated Personality Value.
Gender/Ability Cheat Sheet
| Gender | Ability 1 | Ability2 |
|---|---|---|
| Female | 0x0000 | 0x0001 |
| Male | 0x00FA | 0x00FB |
Note: For forced-gender or genderless pokemon, the gender override is ignored. For pokemon that only have one ability, the ability override is ignored.
IVs
xx = the value of the IV in hexadecimal (e.g. 0x1F is 31)
Moves
xxxx = Pokemon Move ID in hexadecimal. The link only lists the decimal IDs, you'll have to make the conversion yourself (there are dozens of online tools for this, you can use Programmer mode for Windows Calculator, or do it by hand if you're really feeling it).
Custom Personality Value
If you want finer control over a Pokemon's attributes, such as forcing a shiny Pokemon, a specific Unown form, or a specific Wurmple Evolution, use this Python script (runs on the linked website) I wrote to generate a custom Personality Value. Click "Run" at the top, and then respond to the prompts in the console depending on what constraints you want to impose on the Personality Value. I don't know if the share will expire eventually, but I've also uploaded the source to Pastebin, which shouldn't expire (please do let me know if the executable share stops working). Using RNG Reporter or PokeFinder are also options for generating Personality Values. To find out your SID for creating shiny Personality Values, consult the codes in my other post.
1
u/[deleted] Aug 21 '24
So cool, thanks for sharing, I'll have to give this a shot. Curious if you'd be able to answer-anything about Pokemon generated in this manner that still look off to a hack checker?
1
u/Hefty-Locksmith-7451 Apr 03 '25
So how do I use the 6IV emerald cheat?
1
u/Money-Preference8865 Jul 17 '25
Hi, for some reason whenever after and inputting the cheat codes for the “UNSAFE Egg Modifier” (00007D44 000A and 1003A82A 0007) and the code for “Bagon” with the move “ Dragon Dance” (83007D32 0173 and 83007DAC 015D) it just keeps giving me wynaut for some reason (is it important to note I have both set under “Codebreaker”??) please help
1
u/BlackeyeThe2nd Sep 10 '25
Hello! I appear to be doing something wrong when inputting the Nature value using a Pkmn Emerald Cheat Sheet.
When inputting the High Halfword, I cannot obtain Ability 2. Whatever Im doing wrong is also giving me the previous ability on the list (e.g. 0x0270 gets me Naive, 0x0280 gets me Modest, etc.)
I've triple checked my codes to make sure I have no other errors.
Any ideas?
1
u/EmeraldSoul95 Sep 20 '25 edited Sep 20 '25
Hi, im trying to use this at a romhack of fire-red (crystal advance redux). the IV part I'm able to figure out, because they are just 4 bytes shifted. So the addresses are these:
But, i'm not able to locate the address for the personality value. I'm not even sure am I going in the right direction by searching for the PV halfword values in your post using the mGBA emulator memory viewer.
- I tried to pause the game the moment the IV values appeared in memory editor, and tried looking for the PV halfwords but cannot get a consistent address that the game uses.
- I also tried exporting multiple memory snapshot of different nature/ability outcome, and just compare them side by side but i think im going nowhere. lol
Any idea or guidance how i can find the address for the PV? or the question is whether the game uses same PV as you shared.
1
u/CCKillbilly Mar 20 '26
Hey! I am trying to use an max IV code on my original cooy of Emerald, but I am having trouble. I was wondering if you could help me out? I think it might be these codes don’t work with my version of GameShark/AR, but I am not sure.
1
u/SoggyMinimum8386 GBA SP Expert Aug 01 '24
Dang, you're on a roll with all these new codes!
1
u/Bright_Poet8850 Sep 02 '25
How do I know specifically which code is for Max IVs, gender, and nature? Those 3 specifics are the ones I’m looking for my Pokemon to have when they hatch. I have fire red v1.0 on lucky emulator
1
u/datanus2193 Aug 09 '26
thank you so much for your effort and sharing the code. It works wonderfully.
0
u/[deleted] Aug 06 '24
[deleted] — view deleted comment