Gen V TM routine in Gen III games
View Single Post
March 26th, 2012, 09:32 AM
ASM is my life now...
Join Date: May 2008
Originally Posted by
EDIT: In Fire Red, after disassembling the routine at
, it seems that the value of 1 is subtracted from the item amount in r0. Changing this to 0 will cause the TM to not be consumed, but it will do the same for all items as well...
Well, to put it blunt, item index is passed through r4. Make a branch at that offset you mentioned and check if r4 is between tm01 and tm50 item values:
If yes, then don't subtract anything. If not, subtract 1 like normal items.
My Site (UNDER CONSTRUCTION):
(mage by Xryo)
Sou o Dark rayquaza da antiga myutsu.net
My Laptop SPECS
Credits to Eagledelt for the wonderfull sign :D
View Public Profile
Send a private message to sonic1
Find all posts by sonic1
Find threads started by sonic1