RosterHasUnit

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

{C7} RosterHasUnit

RosterHasUnit(xPR,xIDEN)

Variable 0x0000 = 1 if a unit is found, 0 otherwise


See also: {C3} WorldUnitAddress


Parameters : Byte (hex)

  • 0x80: Main Roster (World Formation)
  • 0x40: Bench (Unit Bench Hack)
  • 0x01:
    • 0x01: Search for Name ID
    • 0x00: Search for Main ID

If you do not specify the Main Roster or Bench as flags, then this instruction will always return 0!


Main ID / Name ID : Half-Word (hex)

The Main ID or Name ID to search for.

  • Main ID Format: 0x00-0xFF
  • Name ID Format: 0x0000-0x03FF