Adding Lores in an event - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Adding Lores in an event (/thread-3932.html) |
Adding Lores in an event - Morendo - 01-11-2020 Hi all! While browsing around for different event-related subjects I came upon this old post: https://www.ff6hacking.com/forums/showthread.php?tid=903 In it, Angelo26 shows a neat way for us to change the event code 8F that normally gives Cyan all of his Swdtech abilities into one that can teach characters Magic spells in an event. Pretty cool stuff! I tried it and it works like a charm. I guess it takes advantage of unused code in the game that performs the task but didn't have an event command associated with it. My question is, can this be done with Lores instead of Magic spells? I tried by performing the directions from Angelo's post and using spell index 90 (Blowfish) as the spell to add, but it didn't work. Does anyone know another way? Here's the code the new 8F command points to when you make the changes in the aforementioned post (if it helps). Unfortunately I don't know any Assembly to understand it: Code: C0/AE0D: A5EB LDA $EB RE: Adding Lores in an event - madsiur - 01-11-2020 Here's what the code does: Code: C0/AE0D: A5EB LDA $EB ; load character ID Known Lore are at $1D29-$1D2B, meaning there is 1 bit per Lore on 3 bytes (24 Lores). You would need to set the good bit knowing your first Lore is spell ID $8B. The command would only need one parameter ($EB), the spell ID and with that you set the good bit in $1D29-$1D2B. You'd need to rewrite most of that function, I'm kinda unsure what would be a good way to do it though.. RE: Adding Lores in an event - madsiur - 01-12-2020 I have come up with a possible solution. You can assemble the code with xkas 0.06. It is untested but it does compile. Note that you need to put this in free space and change the pointer to command $8F if it's not already done. You event command will take as only parameter the spell ID and Strago will learn it. Trying to give a lore to a regular character as magic is absurd because there's only 54 spell slots, for spells 0 to 53. Code: hirom |