Difference between revisions of "Dragon Check"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
  001875bc: 3c028019 lui r2,0x8019
+
No Parameters - Returns Nothing
  001875c0: 8c422d98 lw r2,0x2d98(r2) Load Target's stats
+
  001875c4: 27bdffe8 addiu r29,r29,0xffe8
+
Force Attack Miss if Target is not a Dragon nor Tiamat Type
  001875c8: afbf0010 sw r31,0x0010(r29)
+
(Done by Checking for Target's Graphic (0x15e))
  001875cc: 9042015e lbu r2,0x015e(r2) Load Target's Graphic
+
--------------------------------------------------------------------------------
  001875d0: 00000000 nop
+
  001875bc: 3c028019 lui r2,0x8019           |
  001875d4: 2442fff1 addiu r2,r2,0xfff1 Target's Graphic - E
+
  001875c0: 8c422d98 lw r2,0x2d98(r2)         |{{f/adr|<nowiki>r2 = Target data pointer</nowiki>}}
  001875d8: 2c420002 sltiu r2,r2,0x0002 Set to 1 if Target's Graphic is E, F, or 10
+
  001875c4: 27bdffe8 addiu r29,r29,-0x0018    |
  001875dc: 14400003 bne r2,r0,0x001875ec Branch to end if target is using Graphic E, F, 10
+
  001875c8: afbf0010 sw r31,0x0010(r29)       |
  001875e0: 00000000 nop
+
  001875cc: 9042015e lbu r2,0x015e(r2)       |{{f/load|<nowiki>r2 = Target's Graphic</nowiki>}} {{f/std|Monster Type in Patcher's Job sheet}}
  001875e4: 0c0610c3 jal 0x0018430c Force Attack Miss
+
  001875d0: 00000000 nop                     |
  001875e8: 00000000 nop
+
  001875d4: 2442fff1 addiu r2,r2,-0x000f      |{{f/std|<nowiki>r2 = Target Graphic - 0xf </nowiki>}}
  001875ec: 8fbf0010 lw r31,0x0010(r29)
+
  001875d8: 2c420002 sltiu r2,r2,0x0002       |{{f/std|<nowiki>r2 = 0x01 if Target Graphic is Dragon or Tiamat</nowiki>}}
  001875f0: 27bd0018 addiu r29,r29,0x0018
+
  001875dc: 14400003 bne r2,r0,0x001875ec     {{f/Cond|If Target is not using Dragon or Tiamat Graphic}}
  001875f4: 03e00008 jr r31
+
  001875e0: 00000000 nop                         |
 +
  001875e4: 0c0610c3 jal 0x0018430c               |{{f/jal|Force Attack Miss|Force Attack Miss}} {{f/std|<nowiki>Hit Flag = Miss Hit% = 0 - Evade type = 0x07</nowiki>}}
 +
  001875e8: 00000000 nop                         |
 +
  001875ec: 8fbf0010 lw r31,0x0010(r29)       END
 +
  001875f0: 27bd0018 addiu r29,r29,0x0018
 +
  001875f4: 03e00008 jr r31
 
  001875f8: 00000000 nop
 
  001875f8: 00000000 nop
 
+
=== Return Locations ===
 
+
'''Battle.bin'''
== Return Locations ==
 
 
 
*Battle.bin
 
 
  0018a980 - [[5A Dragon: Hit(100)%]]
 
  0018a980 - [[5A Dragon: Hit(100)%]]
 
  0018a9c4 - [[5B Dragon: Heal_(Y)% 100% Add Status]]
 
  0018a9c4 - [[5B Dragon: Heal_(Y)% 100% Add Status]]
 
  0018aa10 - [[5C Dragon: +Brave_(X) +PA/MA/SP(Y)]]
 
  0018aa10 - [[5C Dragon: +Brave_(X) +PA/MA/SP(Y)]]
 
  0018aa54 - [[5D Dragon: Set_Quick]]
 
  0018aa54 - [[5D Dragon: Set_Quick]]

Latest revision as of 18:55, 27 April 2022

No Parameters - Returns Nothing

Force Attack Miss if Target is not a Dragon nor Tiamat Type
(Done by Checking for Target's Graphic (0x15e))
--------------------------------------------------------------------------------
001875bc: 3c028019 lui r2,0x8019            |
001875c0: 8c422d98 lw r2,0x2d98(r2)         |r2 = Target data pointer
001875c4: 27bdffe8 addiu r29,r29,-0x0018    |
001875c8: afbf0010 sw r31,0x0010(r29)       |
001875cc: 9042015e lbu r2,0x015e(r2)        |r2 = Target's Graphic Monster Type in Patcher's Job sheet
001875d0: 00000000 nop                      |
001875d4: 2442fff1 addiu r2,r2,-0x000f      |r2 = Target Graphic - 0xf 
001875d8: 2c420002 sltiu r2,r2,0x0002       |r2 = 0x01 if Target Graphic is  Dragon or Tiamat
001875dc: 14400003 bne r2,r0,0x001875ec     #If Target is not using Dragon or Tiamat Graphic
001875e0: 00000000 nop                          |
001875e4: 0c0610c3 jal 0x0018430c               |-->Force Attack Miss Hit Flag = Miss Hit% = 0 - Evade type = 0x07
001875e8: 00000000 nop                          |
001875ec: 8fbf0010 lw r31,0x0010(r29)       END
001875f0: 27bd0018 addiu r29,r29,0x0018
001875f4: 03e00008 jr r31
001875f8: 00000000 nop

Return Locations

Battle.bin
0018a980 - 5A Dragon: Hit(100)%
0018a9c4 - 5B Dragon: Heal_(Y)% 100% Add Status
0018aa10 - 5C Dragon: +Brave_(X) +PA/MA/SP(Y)
0018aa54 - 5D Dragon: Set_Quick