Difference between revisions of "12 Set Quick Hit F(MA+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [12] 0018912c: 27bdffe8 addiu r29,r29,0xffe8 00189130: afbf0010 sw r31,0x0010(r29) 00189134: 0c061760 jal 0x 00185d80 Get X and MA 00189138: 00000000 nop 001...")
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[12]
+
  0018912c: 27bdffe8 addiu r29,r29,-0x0018    |
  0018912c: 27bdffe8 addiu r29,r29,0xffe8
+
  00189130: afbf0010 sw r31,0x0010(r29)       |
  00189130: afbf0010 sw r31,0x0010(r29)
+
  00189134: 0c061760 jal 0x00185d80          |{{f/jal|Store MA and X|Store MA and X}} Set Ability XA = Attacker's MA and YA = used Ability X
  00189134: 0c061760 jal 0x 00185d80  Get X and MA
+
  00189138: 00000000 nop                     |
  00189138: 00000000 nop
+
  0018913c: 0c062200 jal 0x00188800          |{{f/jal|MA + X|XA + YA becomes Hit% (friendly spell)}} Modify XA (Support/Compatibility) Uses XA+YA as Hit% (Influenced by Faith) returns r2 = 0x00 if Attack hits
  0018913c: 0c062200 jal 0x 00188800  Calculate (MA + X)*Faith% This is essentially the same as 0x188a24 except without elemental boosting, shell, or MADEF.
+
  00189140: 00000000 nop                     |
  00189140: 00000000 nop
+
  00189144: 14400003 bne r2,r0,0x00189154    {{f/Cond|If Attacks Hits}}
  00189144: 14400003 bne r2,r0,0x 00189154
+
  00189148: 00000000 nop                         |
  00189148: 00000000 nop
+
  0018914c: 0c061e0f jal 0x0018783c              |{{f/jal|Quick Effect|Quick Effect}} Set Target CT change to 0xff and Attack type to 0x08 (pseudo status)
  0018914c: 0c061e0f jal 0x 0018783c  Quick Effect
+
  00189150: 00000000 nop                         |
  00189150: 00000000 nop
+
  00189154: 8fbf0010 lw r31,0x0010(r29)       END
  00189154: 8fbf0010 lw r31,0x0010(r29)
+
  00189158: 27bd0018 addiu r29,r29,0x0018   
  00189158: 27bd 0018 addiu r29,r29,0x 0018
+
  0018915c: 03e00008 jr r31                  
  0018915c: 03e00008 jr r31
+
  00189160: 00000000 nop                    
  00189160: 00000000 nop
+
=== Return locations ===
 +
'''Battle.bin'''
 +
0018b97c - [[Pre Formula Setup (FDC)|Pre Formula Setup]]

Latest revision as of 20:13, 16 April 2022

0018912c: 27bdffe8 addiu r29,r29,-0x0018    |
00189130: afbf0010 sw r31,0x0010(r29)       |
00189134: 0c061760 jal 0x00185d80           |-->Store MA and X Set Ability XA = Attacker's MA and YA = used Ability X
00189138: 00000000 nop                      |
0018913c: 0c062200 jal 0x00188800           |-->XA + YA becomes Hit% (friendly spell) Modify XA (Support/Compatibility) Uses XA+YA as Hit% (Influenced by Faith) returns r2 = 0x00 if Attack hits
00189140: 00000000 nop                      |
00189144: 14400003 bne r2,r0,0x00189154     #If Attacks Hits
00189148: 00000000 nop                          |
0018914c: 0c061e0f jal 0x0018783c               |-->Quick Effect Set Target CT change to 0xff and Attack type to 0x08 (pseudo status)
00189150: 00000000 nop                          |
00189154: 8fbf0010 lw r31,0x0010(r29)       END
00189158: 27bd0018 addiu r29,r29,0x0018     
0018915c: 03e00008 jr r31                   
00189160: 00000000 nop                      

Return locations

Battle.bin
0018b97c - Pre Formula Setup