FF6 Hacking
Increase the Learn Rate of Magic - 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: Increase the Learn Rate of Magic (/thread-3263.html)



Increase the Learn Rate of Magic - Fenrir - 06-07-2016

Magic spells are learn when the player reaches 100 Magic AP, but I wish to increase this number to the maximum value of 255. Now, I've made changes to the menus with information found in the C3 bank document and posts on the forum. Now, searching for this value as been unsuccessful. I haven't found anything in C3 bank document related to the spell learning cap. Has anyone find the location of this value?

I also cannot access Assassin's C2 bank document and/or his other documents. Anyone knows if there are backup of his documents?


RE: Increase the Learn Rate of Magic - seibaby - 06-07-2016

Here's assassin's doc:
assassin17.brinkster.net/code2i.txt

I believe what you're looking for is at C2/6061.

Code:
Progress towards learning spell

C2/604B: F0 1F        BEQ $606C      (branch if no learn rate, i.e. no spell to learn)
C2/604D: EB           XBA
C2/604E: A5 FB        LDA $FB        (Magic points gained from the battle)
C2/6050: 20 81 47     JSR $4781      (Multiply by spell learn rate)
C2/6053: 85 EE        STA $EE        (Store this amount in $EE)
C2/6055: B1 F4        LDA ($F4),Y    (what % of spell is known)
C2/6057: C9 FF        CMP #$FF
C2/6059: F0 11        BEQ $606C      (Branch if spell already known)
C2/605B: 18           CLC
C2/605C: 65 EE        ADC $EE        (Add amount learned to % known for spell)
C2/605E: B0 04        BCS $6064
C2/6060: C9 64        CMP #$64
C2/6062: 90 02        BCC $6066      (branch if % known didn't reach 100)
C2/6064: A9 80        LDA #$80
C2/6066: 91 F4        STA ($F4),Y    (if it did, mark spell as just learned)
C2/6068: A5 F1        LDA $F1
C2/606A: 04 F0        TSB $F0        (tell Function C2/5D91 to enable gained Magic Point
                                     display, provided we've already gotten an Esper
                                     Magicite from Zozo)
C2/606C: 60           RTS



RE: Increase the Learn Rate of Magic - Tenkarider - 06-07-2016

Here's something else that might help you:
https://www.ff6hacking.com/forums/showthread.php?tid=2772

I already implemented what you want to do in CotG, still i don't remember what i did in the first part of the code, yet Seibaby probably sent
you the solution to the first part.

PS. beware to not provide in a formation x AP where x is a value that multiplied with the spell learning rate results in a value greater that 255
or it will overflow.


RE: Increase the Learn Rate of Magic - Fenrir - 06-07-2016

I had a feeling that this information was in C2 Bank, thank you seibaby for the information and link to assassin's document, I bookmarked it. I change the value and it works. As well, thank you for the link Tenkarider.

I'm curious about what you said about the overflowing Tenkarider. Do you mean the spell learned rate from the esper or the Magic AP acquired? In my mod, the Magic AP is the same as the vanilla version. The max that is given out is 10 Magic AP, the only change I've made is to Intangir and Cactuar to gives 5 instead of 10.  As for the learn rate, I doubt I will push it pass 20. I just tested it with the spell Cure with a learning rate of 15 and Edgar learn the spell in three battles and it appears within his magic menu. I was at the Fanatic Tower, and earn 7-8 Magic AP.


RE: Increase the Learn Rate of Magic - Tenkarider - 06-07-2016

lol i pushed the thank you for error  Laugh

Btw yeah, in vanilla the highest amount of AP you receive is 10 and the highest spell learning rate you have is 20
10 x 20 = 200 -> that will never make overflow the AP received for that spell.
13 AP x 20 = 260 -> overflow -> the spell will actually get 4/6 AP.