• 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.

[Other] Special for learning moves

Not sure which ROM you're hacking, but I was coincidentally poking Knizz's (FireRed) idb the other day.

There's a subroutine at 0x0803E89C. Set r0 to the pokemon's offset and r1 to the move halfword. If the pokemon has space in its moveset, it automatically teaches the move. It doesn't teach the move if the pokemon's moveset is full, but I'd guess that a routine that calls it does, because it also returns FFFE if the pokemon knows the move and FFFF if the pokemon already has four moves. It's used in a number of things like TM's, level up, even daycare. Probably everything. I can't really check right now, but I bet that if you look around there, you'll find what you're looking for.
 
Last edited:
Back
Top