• 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!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Script] Is it possible to replace HMs with Key Items?

  • 1
    Posts
    5
    Years
    Hey Guys!

    I've been interested in creating a patch for pokemon Emerald for a very long time. And being new to rom hacking I'm not looking to do anything insane. I'd just like to test the waters.

    For now I would like to find a way to replace HMs in the game with some sort of key item. And my research so far makes it seem not impossible, it appears a case of redirecting certain script.

    If anyone has any pointers on where to start with this Emerald patch, I'm open to any advice.

    Thanks all.
     
    Last edited:
    I was able to make all but flash and fly activate-able without being taught
    Cut Original Script:
    Spoiler:

    Cut Modified Script:
    Spoiler:

    I only had to remove five lines that deal with checking the attack, though its obviously preferable to re-point the text to something that talks about using an item, and you can remove the animations for HM moves by editing 0xB8536 with 00 00 00 00 00 00 00 00 00 00 00 00

    Here are the locations for Emerald's HM scripts:
    Spoiler:


    But for surf for some reason there has to be other edits, just replace the bytes at 9C80A-9C80B to 00 00
    I THINK that was it for surf, but honestly my notes I took about this weren't great, I know I did get it working in my hack though. Hopefully someone else can help with flash and fly! I haven't had much luck asking for help here or on discord (asking multiple times mind you) so I hope I was able to help you out a bit!
     
    Back
    Top