FF6 Hacking
Two question - regen, imp - - 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: Two question - regen, imp - (/thread-2474.html)



Two question - regen, imp - - tsushiy - 02-05-2014

hello everyone.Confused
I have two question.


1, regen

Can I do the upper limit of the amount of regen recovery?
I want to change the 254-512(or more), the upper limit.

2,imp

Is it possible to not display the animation of weapon when status imp?
(like a no weapon)



I'm sorry you have just always question. Please let me know if anyone knows someone.Cover


RE: Two question - regen, imp - - SSJ Rick - 02-05-2014

both of these require a lot of hard code ASM hacking, its possible, but it'll be a long and difficult process, I doubt you are going to find anyone willing to do it for you, if anyone can find the offsets and know how to change what into what then they can guide you in the right direction


RE: Two question - regen, imp - - madsiur - 02-05-2014

As for your regen question the damage is set on 1 byte ($11A6). $11A7 being taken for something else labeled as special byte 3, you won't be able to allocate the damage on two bytes, unless you find free RAM (if that ever exists). If you manage to do that, you would also have to change some code where the damage/battle power ($11A6) is used.

Here's how regen is calculated, according to Assassin's C2 disassembly:

Code:
C2/5051: B9 40 3B     LDA $3B40,Y (Stamina)    (Figure damage)
C2/5054: 85 E8        STA $E8
C2/5056: C2 20        REP #$20
C2/5058: B9 1C 3C     LDA $3C1C,Y (Max HP)
C2/505B: 20 B7 47     JSR $47B7   (Max HP * Stamina / 256)
C2/505E: 4A           LSR
C2/505F: 4A           LSR
C2/5060: C9 FE        CMP #$00FE  
C2/5063: E2 20        SEP #$20
C2/5065: 90 02        BCC $5069   (If under 254)
C2/5067: A9 FC        LDA #$FC    (set to 253)
C2/5069: 69 02        ADC #$02
C2/506B: 8D A6 11     STA $11A6   (Store damage in battle power)



RE: Two question - regen, imp - - tsushiy - 02-05-2014

Thanks for the advice both of them!

Do I need to change the location of all damage set bit ($11A6) about regen question?
If so, it is seems difficult to me.Cover
How about, Is it possible to be doubled or more the regen?


RE: Two question - regen, imp - - madsiur - 02-07-2014

It's not a matter of changing all the damage set code ($11A6) to your new RAM location but making an exception where that positive damage is used to use your new RAM location. I don't know where that code is though.