Hello everybody, first of all I want to thank you for your awesome site. I've been reading through these forums for a long time now, and I've learned a lot about editing various stuff in FF4 from you all. Now I'm currently working on editing FF6 a little bit, but I have a little problem here concerning natural magic.
I want Strago and Relm to learn magic naturally, so I followed the steps that Lenophis posted in this thread. I successfully added the checks for Strago's and Relm's character IDs, wrote their own spell lists and added their own forks to teach them magic. It took me a few tries to get it working correctly, but now Strago and Relm learn their spells through level averaging when they join/rejoin the party. So far, so good. But I don't know how exactly to make them learn spells when they gain a level after battle. I found the code that Imzogelmo posted, but I'm not quite sure what I need to change there. I gotta admit, I know next to nothing about assembly, so I hope someone here can help me with this.
In case it matters, the spell lists for Strago's and Relm's natural magic are located directly above Terra's list of natural magic, because there are a lot of unused bytes. This means Relm's list starts at offset 2CE580, and Strago's list starts at offset 2CE5A0. Thanks in advance, any help is appreciated.