Final Fantasy IV Research & Development / Re: Item effects outside of battle
« on: August 27, 2013, 10:43:51 PM »Yes, you change how many there are...
01A337 - CMP EB (Carrot, End of Summons?) - RAM
but it does nothing other than crash the game in a multitude of ways, which is strange considering it is just a sequence check and the Key Items have no functions associated with them save the Whistle which has an independent function. This is definitely worthy of further investigation, but I couldn't figure it out unfortunately. It likely means there is another check somewhere to check if the index is valid that I haven't located yet.
Posting an older... post of mine from the original Call Items topic. Now perhaps I can find how the game puts said magic into its respective spell set.
2: looks like I forgot that I had basically figured that out as well. Only problem at the time was I wasn't thorough enough to realize that you also need to change the C015's closeby to assure the game recognizes that the spell has been learned in the proper spot to prevent relearning it again from another Call Orb.In RAM this is at...
0x1A899 - B9 C0 15 - (Checks the value index to see if it is already filled with the spell number)
0x1A8A7 - B9 C0 15 - (As above?)
0x1A8B3 - 99 C0 15 - (Writes the spell number to 15C0, Rydia's Summon Magic)
So to put this into perspective...
7E1560 - Paladin Cecil's White Magic
7E1578 - Kain's Unused White Magic
7E1590 - Rydia's White Magic
7E15A8 - Rydia's Black Magic
7E15C0 - Rydia's Call Magic
7E15D8 - Tellah's White Magic
7E15F0 - Tellah's Black Magic
7E1608 - Rosa's White Magic
7E1620 - Palom's Black Magic
7E1638 - Porom's White Magic
7E1650 - FuSoYa's White Magic
7E1668 - FuSoYa's Black Magic
7E1680 - Edge's Ninjutsu
So there you have it, unfortunately only One Character (or more precisely, one spell set) will be able to learn this sequence of four spells.
In ROM this is located at...
0xAA99 - B9 C0 15 - (Checks the value index to see if it is already filled with the spell number)
0xAAA7 - B9 C0 15 - (As above?)
0xAAB3 - 99 C0 15 - (Writes the spell number to 15C0, Rydia's Summon Magic)
With this information any character can be required to learn the spell and any spell set can learn the given spell and not relearn it.
Thanks to your 1A8B3 hint I did manage to find the first part of what we're looking for, the ID of the sought after Party Member to learn spells.
At 0x1A877 there is a 03, this is Rydia's ID that she Must be in the party to learn the spell. Perhaps the game did intend for others to learn optional spells at one point, since...
Depending on the character ID it shows that name. However as you can imagine, it's all cosmetic. Though you must have Cecil in the party to learn Imp, it is still Rydia who learns Imp. This goes back to what you first said about changing the owner of the spell and we still have yet to find that in RAM outside of the registers. With any luck we'll find it soon.
EDIT: Oh you were absolutely right, just didn't realize that you had already found the pointer, hehe. Well for reference sake in RAM it is at 1A8B3, the 99 C0 15 pointer.
EDIT 2: Unfortunately you were correct, that single byte is linked to all four Summons, no idea how to easily change that, as for all intents and purposes, we are sifting through ASM and only pulling at data rather than instructions.
EDIT 3: Found it in ROM, curiously enough this entire RAM section is located only 12,000 bytes removed from ROM. In a 1.1? Rom? (Whichever one happens to work with FF4kster) So it's at 0xAA77 for the ID to change who needs to be in the party for the spells to be learned and...
0xAAB3 for where the spells will be added to (still need to find how the spells are added.)
We have EVEN MORE themes now, but some old ones are gone...

