Playing around with this some more, it’s pretty neat.
Increasing the active unit’s stats:
Get_Word(0x3004E50) //SLOT 2 = pointer to currently selected unit
SETVAL 0x1 0x14 //14th byte = STR
SLOTS_ADD 0x123 //SLOT 3 = SLOT 2 + SLOT 1 = offset of STR byte
SETVAL 0x4 0x2
ASMC (ReadRoutine+1) //Get the STR byte from the offset
SETVAL 0x1 0x4
SLOTS_ADD 0x122 //SLOT 2 = STR + 4
ASMC (WriteRoutine+1) //Write STR back to unit data
_0x1620 (SoundID)
_0x3A40 (Text ID) 0 0 //Play sound and show stat up text
Are there read/write routines already in the ROM that someone could use for this, or is it something I would have to write then implement in order to use?
The potential uses for this are really cool, and i’d love to include it in a project i’m working on.
I added the latest version of the routines to the top post. Simply paste the hex somewhere in the rom and call it using SETVALs and ASMC (address+1) or just use the macros I’ve written.
I have counter routines in FE7 that use one byte of event codes to allow you access to a counter (for counting enemies killed or what have you). Did I ever public release this or is it just in my dropbox???