Final Fantasy IV Research & Development / Re: Grimoire LD's Notes, Patches, and Hacks (Commands stored directly in RAM!)
« on: February 08, 2014, 08:09:17 PM »What this command does is it looks at the targeted Enemy's Item Byte, looks for the Item Byte's mention in RAM, and changes that to +40 making the odds you will receive an item from defeating that Foe about 20% chance better. (5% for 40+, 25% for 80+, Always for C0+)
Because of its... kind of overpowered nature, it is a rare weapon in my mod, and because it is a weapon it's effect is not always guaranteed.
Seek - Remastered
$03/FFAE 7B TDC A:0001 X:0100 Y:1A35 P:envMxdIzC - Clear A.
$03/FFAF AA TAX A:0001 X:0100 Y:1A35 P:envMxdIzC - Transfer A to X.
$03/FFB0 AD 73 27 LDA $2773 [$00:2773] A:0001 X:0100 Y:1A35 P:envMxdIzC - Load Targeted Enemy's Item Byte into A.
--------------------------------------------------------------------(Looping Point)------------------------------------------------------------------------------
$03/FFB3 DD 8E 35 CMP $358E,x[$00:368E] A:0001 X:0100 Y:1A35 P:envMxdIzC - Is it the same as the byte in Stored Item Byte?
$03/FFB6 F0 08 BEQ $08 [$FFC0] A:0001 X:0100 Y:1A35 P:envMxdIzC - If so, branch to rest of routine.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$03/FFB8 E0 02 00 CPX #$0002 A:0001 X:0100 Y:1A35 P:envMxdIzC - Has it looked at all enemy type Item Drops?
$03/FFBB F0 0D BEQ $0D [$FFCA] A:0001 X:0100 Y:1A35 P:envMxdIzC - If so, branch to Return.
$03/FFBD E8 INX A:0001 X:0100 Y:1A35 P:envMxdIzC - +1 to X.
$03/FFBE 80 F3 BRA $F3 [$FFB3] A:0001 X:0100 Y:1A35 P:envMxdIzC - Loop back to Stored Item Bytes
-----------------------------------------------------------------------------------------------------------------------
$03/FFC0 69 3F ADC #$3F A:0001 X:0100 Y:1A35 P:envMxdIzC - Add 3F (+1) into A.
$03/FFC2 9D 8E 35 STA $358E,x[$00:368E] A:0001 X:0100 Y:1A35 P:envMxdIzC - Store A in Stored Item Byte.
$03/FFC5 A9 90 LDA #$90 A:0001 X:0100 Y:1A35 P:envMxdIzC - Load Search Graphic into A.
$03/FFC7 8D C4 33 STA $33C2 [$00:33C4] A:0001 X:0100 Y:1A35 P:envMxdIzC - Store A in Audiovisual Cue.
7B TDC - Clear A
STA $33C3 - Store 00 in Audiovisual Cue (to make the Scan graphic show before the attack graphic, rather than the Scan graphic making the rest of the animation look off)
4/15/14 - Changed the routine slightly to account for Scan's graphic.



