51 Hit (MA+X)%

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[51]
0018a4e8: 27bdffe8 addiu r29,r29,-0x0018    |
0018a4ec: afbf0010 sw r31,0x0010(r29)       |
0018a4f0: 0c061760 jal 0x00185d80           |-->Store_MA_and_X Set Ability XA = Attacker's MA and YA = used Ability X
0018a4f4: 00000000 nop                      |
0018a4f8: 0c0617ff jal 0x00185ffc           |-->Elemental_Strengthen XA + 25% if used Ability Element is strengthened
0018a4fc: 00000000 nop                      |
0018a500: 0c061881 jal 0x00186204           |-->Magic_Attack_Up_routine Ability XA +33% If Attacker uses Magic Attack Up
0018a504: 00000000 nop                      |
0018a508: 0c061259 jal 0x00184964           |-->Compatibility Alters XA (-50% to +50%) based on compatibility
0018a50c: 00000000 nop                      |
0018a510: 0c061967 jal 0x0018659c           |-->XA +YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility)
0018a514: 00000000 nop                      |
0018a518: 0c061d44 jal 0x00187510           |-->Uses_HP_damage_as_Action_hit% HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails
0018a51c: 00000000 nop                      |
0018a520: 3c028019 lui r2,0x8019            |
0018a524: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
0018a528: 00000000 nop                      |
0018a52c: 90420000 lbu r2,0x0000(r2)        |r2 = TCA hit flag
0018a530: 00000000 nop                      |
0018a534: 10400003 beq r2,r0,0x0018a544     #If Attack hits
0018a538: 00000000 nop                          |
0018a53c: 0c061fc9 jal 0x00187f24               |-->Apply_status_(to_action) Add Ability status - if successful update TCA Attack type
0018a540: 00000000 nop                          |
0018a544: 8fbf0010 lw r31,0x0010(r29)       END
0018a548: 27bd0018 addiu r29,r29,0x0018
0018a54c: 03e00008 jr r31
0018a550: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup