Store Speed and X

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
No Parameters - Returns Nothing

Set Current Ability XA = Attacker's speed
Set Current Ability YA = Used Ability X
--------------------------------------------------------------------------------------------------------------
00185e30: 3c028019 lui r2,0x8019            |
00185e34: 8c422d94 lw r2,0x2d94(r2)         |r2 = Attacker data pointer
00185e38: 3c038019 lui r3,0x8019            |
00185e3c: 906338f9 lbu r3,0x38f9(r3)        |r3 = Current Ability used Ability X
00185e40: 90420038 lbu r2,0x0038(r2)        |r2 = Attacker's speed
00185e44: 3c018019 lui r1,0x8019            |
00185e48: a42338d0 sh r3,0x38d0(r1)         |Set Current Ability YA = used Ability X
00185e4c: 3c018019 lui r1,0x8019            |
00185e50: a42238ce sh r2,0x38ce(r1)         |Set Current Ability XA = Attacker's speed
00185e54: 03e00008 jr r31                   |
00185e58: 00000000 nop                      |

Return Locations

Battle.bin
001897e0: 26 Equipped: Steal Hit_(SP+X)%
00189848: 27 StealGil_(CasLVL*SP) Hit_(SP+X)%
00189890: 28 StealExp_(Lowest of TarCurExp & SP+Y) Hit_(SP+X)%
0018a03c: 3F Hit_(SP+X)%
0018a098: 40 Undead: Hit_(SP+X)%