Store MA and X

From Final Fantasy Hacktics Wiki
Revision as of 20:00, 13 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No Parameters - Returns Nothing

Set Ability XA = Attacker's MA
Set Ability YA = Used Ability X
------------------------------------------------------------------------------------------------
00185d80: 3c028019 lui r2,0x8019            |
00185d84: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker's data pointer
00185d88: 3c038019 lui r3,0x8019            |
00185d8c: 906338f9 lbu r3,0x38f9(r3)        |r3 = Current Ability used Ability X
00185d90: 90420037 lbu r2,0x0037(r2)        |r2 = Attacker's MA
00185d94: 3c018019 lui r1,0x8019            |
00185d98: a42338d0 sh r3,0x38d0(r1)         |Store X as YA
00185d9c: 3c018019 lui r1,0x8019            |
00185da0: a42238ce sh r2,0x38ce(r1)         |Store MA as XA
00185da4: 03e00008 jr r31                   |
00185da8: 00000000 nop                      |

Return locations

Battle.bin
00188898: Formula 14 (golem) accuracy
001889dc: Calculate Accuracy for Magical Spells 
00188a34: Calculate Accuracy for Magical 
00188a94: MA_+_X_without_faith
00188ec8: 0B Hit_F(MA+X)%
00188f48: 0D Heal_(Y)% Hit_F(MA+X)%
00188fe4: 0E Dmg_(Y)% Hit_F(MA+X)% 100% Status Hide Status
0018913c: 12 Set_Quick Hit_F(MA+X)%
00189920: 29 OppositeSex: Hit_(MA+X)%
00189a44: 2A Hit_(MA+X)% // AffectBraveOrFaith(Y)
0018a3f0: 4D AbsHP_(Y)% Hit_(MA+X)%
0018a478: 4F Dmg_(CasMaxHP-CasCurHP) Hit_(PA+X)%
0018a4c0: 50 Hit_(MA+X)%
0018a4f8: 51 Hit_(MA+X)%
0018a834: 58 Generic: Set_Morbol: Hit(MA+X)%