Store PA and Y

From Final Fantasy Hacktics Wiki
Revision as of 11:07, 23 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 Current Ability XA = Attacker's PA
Set Current Ability YA = used Ability Y
--------------------------------------------------------------------------------------------------
00185e04: 3c028019 lui r2,0x8019
00185e08: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185e0c: 3c038019 lui r3,0x8019            |
00185e10: 906338fa lbu r3,0x38fa(r3)        |r3 = Current Ability used Ability Y
00185e14: 90420036 lbu r2,0x0036(r2)        |r2 = Attacker's PA
00185e18: 3c018019 lui r1,0x8019            |
00185e1c: a42338d0 sh r3,0x38d0(r1)         |Set Ability YA = used Ability Y
00185e20: 3c018019 lui r1,0x8019            |
00185e24: a42238ce sh r2,0x38ce(r1)         |Set Ability XA = Attacker's PA
00185e28: 03e00008 jr r31                   
00185e2c: 00000000 nop 

Return Locations

Battle.bin
00189ab0: 2B Hit_(PA+X)% // -PA/MA/SP_(X)
00189af8: 2C DmgMP_(X)% Hit_(PA+Y)%
00189ea4: 34 Heal_(PA*Y) HealMP_(PA*Y/2)
00189fa4: 37 Dmg_(Rdm(1…Y)*PA)
0018a18c: 42 Dmg_(PA*Y) DmgCas_(PA*Y/X)