Final Fantasy IV Research & Development / Re: Grimoire LD's Notes, Patches, and Hacks (Touched up Coat Hammer Command)
« on: August 11, 2014, 09:27:56 PM »$02/E14E AD 00 18 LDA $1800 [$7E:1800] A:0001 X:0000 Y:0000 P:envMxdIzc - Load Formation Byte.
$02/E151 C9 B6 CMP #$B6 A:00B6 X:0000 Y:0000 P:eNvMxdIzc - Is it B6? (Golbez Fight)
$02/E153 D0 1B BNE $1B [$E170] A:00B6 X:0000 Y:0000 P:envMxdIZC - If not, branch to normal formation setup.
--------------------------------------------------------------------------------------------------------------------------------------
$02/E155 BD 01 20 LDA $2001,x[$7E:2001] A:00B6 X:0000 Y:0000 P:envMxdIZC - Load Character ID of X Slot.
$02/E158 29 0F AND #$0F A:00AB X:0000 Y:0000 P:eNvMxdIzC - Get rid of unnecessary bits.
$02/E15A C9 0B CMP #$0B A:000B X:0000 Y:0000 P:envMxdIzC - Is it Adult Rydia?
$02/E15C D0 12 BNE $12 [$E170] A:000B X:0000 Y:0000 P:envMxdIZC - If not, branch to normal formation setup.
--------------------------------------------------------------------------------------------------------------------------------------------
$02/E15E BD 05 20 LDA $2005,x[$7E:2005] A:000B X:0000 Y:0000 P:envMxdIZC - Load Adult Rydia's Status Byte 3.
$02/E161 09 82 ORA #$82 A:0000 X:0000 Y:0000 P:envMxdIZC - Add Magnetized and Jumping to Adult Rydia (Not Hide? Wha?)
$02/E163 9D 05 20 STA $2005,x[$7E:2005] A:0082 X:0000 Y:0000 P:eNvMxdIzC - Store A in Adult Rydia's Status Byte 3.
$02/E166 A6 00 LDX $00 [$00:0000] A:0082 X:0000 Y:0000 P:eNvMxdIzC - Load 00 into X.
$02/E168 A9 01 LDA #$01 A:0082 X:0000 Y:0000 P:envMxdIZC - Load 01 into A.
$02/E16A 9D C1 F2 STA $F2C1,x[$7E:F2C1] A:0001 X:0000 Y:0000 P:envMxdIzC - Store A in 7EF2C1 (Looks to be an unknown part of RAM as far as my notes are concerned.)
$02/E16D 7B TDC A:0001 X:0000 Y:0000 P:envMxdIzC - Transfer Direct Page.
$02/E16E 80 05 BRA $05 [$E175] A:0000 X:0000 Y:0000 P:envMxdIZC - Branch to rest of formation routine.
I just did a test with that and that F2C1 being 0001 is Actually what is hiding Rydia's name and HP. If that is 00 the name and HP appears.
Oh wow, this is some RAM that can actually hide all names and HP! It's slot based, but it's also not intended for normal gameplay. it's true that you can no longer target an ally, but the enemy can still target them just fine.
I haven't yet looked to see how the "shade" is removed from Adult Rydia's return though, how that 01 becomes a 00 exactly. It doesn't appear to be the normal set up of the "Rydia Returns" routine as far as I can see.
We have EVEN MORE themes now, but some old ones are gone...