FF6 Hacking
changeing Health command - 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: changeing Health command (/thread-2439.html)

Pages: 1 2


RE: changeing Health command - SSJ Rick - 03-05-2014

might be a noobish suggestion but maybe the mantra value is checked in usme (I doubt it but u never know)


RE: changeing Health command - Gi Nattak - 03-05-2014

Well the mantra status flag is checked for the spell in usme, that's how it does the extra effect of Mantra.


RE: changeing Health command - HatZen08 - 03-06-2014

Shock and Health are connected in their code. The Shock command will use a piece of the Health command. May it be the issue?

Code:
Shock
C2/171A A9 82        LDA #$82
C2/171C 80 02        BRA $1720

Health
C2/171E A9 2E        LDA #$2E
C2/1720 85 B6        STA $B6    
C2/1722 A9 05        LDA #$05
C2/1724 80 3F        BRA $1765

Also, there is something wrong with this line with the new Mantra code:
Code:
C2/4273 F0 01          BEQ $4278

BEQ $4278 should be “F0 03” instead of “F0 01”. However, C2/4278 is in the middle of the opcode and should freeze/break the game. For the “F0 01” opcode it should be BEQ $4276.


RE: changeing Health command - Gi Nattak - 03-06-2014

Oh yes! My bad I forgot to say that the main spell being used is Shock. I'm using Shock, with the Mantra added effect flag. Wow so Shock branches out to Health's code eh? Nice, that explains that. I admit I should have looked for that, or at least considered looking at the Shock code lol.

And thanks for the heads up on the Mantra code, I appreciate it. =)


RE: changeing Health command - SSJ Rick - 03-07-2014

ah you're right I misread what you put before stupid me LOL