• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[ASM & Hex] Changing "Hold Item" Evolution to "Use" Evolution

  • 38
    Posts
    9
    Years
    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?
     
    Did you use any specific programs in order to accomplish this? I want to adjust the use of a King's Rock to evolve Poliwhirl and Slowpoke on a RomHack of FireRed my friend gave me. But it appears he ran into the same problem you did. Poliwhirl can potentially use it, but it won't have any effect.

    What does "src" mean anyway?
     
    Now, I'm not sure if it's the same for Emerald, or if this even applies at all. So pay this no heed if you wish.

    But in the CFRU it looks like this
    {{EVO_ITEM, ITEM_DEEP_SEA_TOOTH, SPECIES_HUNTAIL ,0}},

    Not sure if the ,0 at the end will affect it at all for Emerald
     
    Back
    Top