Difference between revisions of "Get ID of Unit if Tile is Targetable"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 0017dc88: 27bdffe8 addiu r29,r29,0xffe8 0017dc8c: afbf0010 sw r31,0x0010(r29) 0017dc90: 0c05f72a jal 0x0017dca8 Check if another unit is on the same Tile 0017dc94: 000038...")
 
m (return link)
 
Line 1: Line 1:
 
  0017dc88: 27bdffe8 addiu r29,r29,0xffe8
 
  0017dc88: 27bdffe8 addiu r29,r29,0xffe8
 
  0017dc8c: afbf0010 sw r31,0x0010(r29)
 
  0017dc8c: afbf0010 sw r31,0x0010(r29)
  0017dc90: 0c05f72a jal 0x0017dca8 Check if another unit is on the same Tile
+
  0017dc90: 0c05f72a jal 0x0017dca8 [[Check_if_another_unit_is_on_the_same_Tile]] - Check validity of coordinates (r4,r5,r6) returns r2 = Unit ID if ok (r2 = -0x01 or -0x02 if not)
 
  0017dc94: 00003821 addu r7,r0,r0 r7 = 0 (Just get Unit ID, if possible)
 
  0017dc94: 00003821 addu r7,r0,r0 r7 = 0 (Just get Unit ID, if possible)
 
  0017dc98: 8fbf0010 lw r31,0x0010(r29)
 
  0017dc98: 8fbf0010 lw r31,0x0010(r29)
Line 7: Line 7:
 
  0017dca0: 03e00008 jr r31
 
  0017dca0: 03e00008 jr r31
 
  0017dca4: 00000000 nop
 
  0017dca4: 00000000 nop
 +
===Return locations ===
 +
0017b228: [[Auxilary_targeting_validation]]
 +
0017b23c: [[Auxilary_targeting_validation]]
 +
0017b370: [[Auxilary_targeting_validation]]
 +
0017cba8: [[Reaction_Target/Hit_Calculation]] - Reflect section
 +
0017ae74: [[Targeting_validation_(weapon_flags)]]
 +
00184888: [[Knockback_2]]

Latest revision as of 20:08, 4 December 2021

0017dc88: 27bdffe8 addiu r29,r29,0xffe8
0017dc8c: afbf0010 sw r31,0x0010(r29)
0017dc90: 0c05f72a jal 0x0017dca8		Check_if_another_unit_is_on_the_same_Tile - Check validity of coordinates (r4,r5,r6) returns r2 = Unit ID if ok (r2 = -0x01 or -0x02 if not)
0017dc94: 00003821 addu r7,r0,r0		r7 = 0 (Just get Unit ID, if possible)
0017dc98: 8fbf0010 lw r31,0x0010(r29)
0017dc9c: 27bd0018 addiu r29,r29,0x0018
0017dca0: 03e00008 jr r31
0017dca4: 00000000 nop

Return locations

0017b228: Auxilary_targeting_validation
0017b23c: Auxilary_targeting_validation
0017b370: Auxilary_targeting_validation
0017cba8: Reaction_Target/Hit_Calculation - Reflect section
0017ae74: Targeting_validation_(weapon_flags)
00184888: Knockback_2