The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Special for learning moves (https://www.pokecommunity.com/showthread.php?t=352150)

DizzyEgg July 13th, 2015 2:48 AM

Special for learning moves
 
Is there a special just for learning a move? Besides move tutor special?

azurile13 July 13th, 2015 4:42 AM

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.


All times are GMT -8. The time now is 2:29 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.