1f800080

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Scratch Pad at 0x1f800080 (Pointer is at 8018f4e8)

While used in AI Pathfinding :
Used to store "Other Units" data (not the Active one,  0xff , Dead, Crystal nor treasure).  0x07 Byte per Unit.

0x00 Unit X (Battle data 0x47)                              (00174430)
0x01 Unit Y (Battle data 0x48)                              (00174430)
0x02 
     0x01 if on higher elevation (Battle 0x49)              (00174430)
     0x80 if stepping stone (Battle 0x49)                   (00174430)
          Disabled if Ffrog or chicken

0x03 Unit ID + Flags (Default to FF)                        (00174430)
     0x1f : Unit ID                                         (00174430)
     0x20 : Not Mountable (can't stop on this tile)         (00174430)
     0x40 : Not in Active Unit Team (can't walk the tile)   (00174430)
     Note 0xff by default. (reseted in routine)

0x04 Unit Size                                              (00174430)
     0x04 if Frog or Chicken
     0x06 if normal unit
     +2 if ridden

0x05 Unit Height (Feet position)                            (00174430)  
         Height * 2 + Halves
         + 2 if Floating
         + Depth *2 if Walk on Water or Float
         + Depth *2 - 2 if Move in Water

0x06 Total Height (0x05) + Size (0x04)                      (00174430)