- 38
- Posts
- 9
- Years
- Canada
- Seen Jul 10, 2022
Hi all, I've recently started experimenting with gen 3 romhacking, coming from gen 2. Something I did fairly easily in pokemon crystal was to use the disassembly to change the way items like the Up-Grade, Metal Coat, Kings Rock, etc work, so that they basically were usable stones as well as hold items. Ex, you just use up a Kings Rock on your slowpoke, evolving it to a slowbro, no trade required. I tried basically doing the same thing in the pokeemerald disassembly and I can select "use" on a deepseatooth and in my party, my clampearl is showing it's health bar, while my other pokemon aren't, but whenever I select clampearl to try and use the deepseatooth on it, the game says "It won't have any effect" so I must be missing something...
Here's all I did: in src/data/items.h I changed the lines under [ITEM_DEEP_SEA_TOOTH]
.type = 4
to
.type = 1
and
.fieldUseFunc = ItemUseOUtOfBattle.CannotUse
to
.fieldUseFunc = ItemUseOutOfBattle_EvolutionStone,
Then in src/data/pokemon/evolution.h i changed
[SPECIES_CLAMPERL] = {{EVO_TRADE_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
to
[SPECIES_CLAMPERL] = {{EVO_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
Any ideas on what i missed?
Here's all I did: in src/data/items.h I changed the lines under [ITEM_DEEP_SEA_TOOTH]
.type = 4
to
.type = 1
and
.fieldUseFunc = ItemUseOUtOfBattle.CannotUse
to
.fieldUseFunc = ItemUseOutOfBattle_EvolutionStone,
Then in src/data/pokemon/evolution.h i changed
[SPECIES_CLAMPERL] = {{EVO_TRADE_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
to
[SPECIES_CLAMPERL] = {{EVO_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL},
Any ideas on what i missed?