- 17
- Posts
- 4
- Years
- Seen Jul 8, 2022
Hello,
Im pretty new to this Decomp stuff but I would like to make it so that there are no more trade evolutions.
Obviously for pokemon such as golem, alakazam etc. this is no problem since I can just set the evolution type to EVO_LEVEL and set the desired level to whatever.
The problem comes in with the trade with items. I would like to make it so that you can use metal coat, upgrade, electirizer etc into items that you can use like evolution stones.
First thing I did was set the evolution types to EVO_ITEM corresponding to the correct item in
After this, I went to
and set the fieldUseFunction to ItemUseOutOfBattle_EvolutionStone
Next, I went to
and added all the items needed for trade evolutions to the list at the bottom of the file in the same structure as they do with the evolution stones.
Now i am stuck. When i compile my rom at this point I can use the items but when I try using them the screen fades to black as if going to the Pokémon menu and that's it. so basically just a black screen.
I hope somebody can help me, or has done the "use trade evolution items" thing but in a different way, that might be able to explain how they did it.
Please explain it as if you are talking to a 5 year old since im quite new to all this.
Thanks in advance
Im pretty new to this Decomp stuff but I would like to make it so that there are no more trade evolutions.
Obviously for pokemon such as golem, alakazam etc. this is no problem since I can just set the evolution type to EVO_LEVEL and set the desired level to whatever.
The problem comes in with the trade with items. I would like to make it so that you can use metal coat, upgrade, electirizer etc into items that you can use like evolution stones.
First thing I did was set the evolution types to EVO_ITEM corresponding to the correct item in
Code:
src\data\pokemon\evolution.h
Spoiler:
(Example)
Code:
[SPECIES_MAGMAR] = {{EVO_ITEM, ITEM_MAGMARIZER, SPECIES_MAGMORTAR}},
After this, I went to
Code:
src\data\items.h
Spoiler:
Code:
[ITEM_DUBIOUS_DISC] =
{
.name = _("Dubious Disc"),
.itemId = ITEM_DUBIOUS_DISC,
.price = 2000,
.description = sDubiousDiscDesc,
.pocket = POCKET_ITEMS,
.type = 4,
.fieldUseFunc = ItemUseOutOfBattle_EvolutionStone,
.secondaryId = 0,
},
Next, I went to
Code:
src\data\pokemon\item_effects.h
Spoiler:
Code:
[ITEM_KINGS_ROCK - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_METAL_COAT - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_PROTECTOR - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_DRAGON_SCALE - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_ELECTIRIZER - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_MAGMARIZER - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_UP_GRADE - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_DUBIOUS_DISC - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_PRISM_SCALE - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_REAPER_CLOTH - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_DEEP_SEA_TOOTH - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_DEEP_SEA_SCALE - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_SACHET - ITEM_POTION] = gItemEffect_EvoStone,
[ITEM_WHIPPED_DREAM - ITEM_POTION] = gItemEffect_EvoStone,
Now i am stuck. When i compile my rom at this point I can use the items but when I try using them the screen fades to black as if going to the Pokémon menu and that's it. so basically just a black screen.
I hope somebody can help me, or has done the "use trade evolution items" thing but in a different way, that might be able to explain how they did it.
Please explain it as if you are talking to a 5 year old since im quite new to all this.
Thanks in advance