AddGhostUnit

From Final Fantasy Hacktics Wiki
(Redirected from Event Instruction 47)
Jump to navigation Jump to search

{47} AddGhostUnit

AddGhostUnit(xSP,x00,xID,XXX,YYY,xEL,xFD,xDR)

Adds a fake unit on the map which can be mostly controlled like a regular unit, with some exceptions. In battle, the unit cannot take action or be targeted, and units will be able to walk through it. You can use any spritesheet you want, but be warned: Adding a new spritesheet will leave you with the impossibility of removing the spritesheet even if you remove the Ghost Unit.


See also: {48} WaitAddUnit


Spritesheet ID : Byte (hex)

  • 01: Ramza Chapter 1
  • 02: Ramza Chapter 2-3
  • 03: Ramza Chapter 4
  • 04: Delita Chapter 1
  • 05: Delita Chapter 2-3
  • 06: Delita Chapter 4
  • 07: Algus
  • 08: Zalbag
  • 09: Dycedarg
  • 0A: Larg
  • 0B: Goltana
  • 0C: Ovelia
  • 0D: Orlandu
  • 0E: Funeral
  • 0F: Reis (Human Form)
  • 10: Zalmo
  • 11: Gafgarion (Enemy)
  • 12: Malak (Dead, Used once)
  • 13: Simon
  • 14: Alma (Battle)
  • 15: Olan
  • 16: Mustadio (Join)
  • 17: Gafgarion (Guest)
  • 18: Draclau
  • 19: Rafa (Guest)
  • 1A: Malak (Enemy & Join)
  • 1B: Elmdor
  • 1C: Teta
  • 1D: Barinten
  • 1E: Agrias (Join)
  • 1F: Beowulf
  • 20: Wiegraf Chapter 1
  • 21: Balmafula
  • 22: Mustadio (Guest)
  • 23: Rudvich
  • 24: Vormav
  • 25: Rofel
  • 26: Izlude
  • 27: Kletian
  • 28: Wiegraf Chapter 2-3
  • 29: Rafa (Join)
  • 2A: Meliadoul (Join)
  • 2B: Balk
  • 2C: Alma (Dead)
  • 2D: Celia
  • 2E: Lede
  • 2F: Meliadoul (Enemy)
  • 30: Alma (Events)
  • 31: Ajora
  • 32: Cloud
  • 33: Zalbag (Zombie)
  • 34: Agrias (Guest)
  • 35: Female Chemist
  • 36: Female Priest
  • 37: Male Wizard
  • 38: Male Oracle
  • 39: Male Squire
  • 3A: Celia (Never used)
  • 3B: Lede (Never used)
  • 3C: Velius
  • 3D: Male Knight
  • 3E: Zarela
  • 3F: Male Archer
  • 40: Hashmalum
  • 41: Altima (First Form)
  • 42: Male Wizard
  • 43: Queklain
  • 44: Female Time Mage
  • 45: Adramelk
  • 46: Male Oracle
  • 47: Female Summoner
  • 48: Reis (Dragon Form)
  • 49: Altima (Second Form)
  • 4A: 10 years old man
  • 4B: 10 years old woman
  • 4C: 20 years old man
  • 4D: 20 years old woman
  • 4E: 40 years old man
  • 4F: 40 years old woman
  • 50: 60 years old man
  • 51: 60 years old woman
  • 52: Old Funeral Man
  • 53: Old Funeral Woman
  • 54: Funeral Man
  • 55: Funeral Woman
  • 56: Funeral Priest
  • 57: Male Squire
  • 58: Male Squire
  • 59: Male Squire
  • 5A: Male Squire
  • 5B: Male Squire
  • 5C: Male Squire
  • 5D: ???
  • 5E: ???
  • 5F: ???
  • 60: Male Squire
  • 61: Female Squire
  • 62: Male Chemist
  • 63: Female Chemist
  • 64: Male Knight
  • 65: Female Knight
  • 66: Male Archer
  • 67: Female Archer
  • 68: Male Monk
  • 69: Female Monk
  • 6A: Male Priest
  • 6B: Female Priest
  • 6C: Male Wizard
  • 6D: Female Wizard
  • 6E: Male Time Mage
  • 6F: Female Time Mage
  • 70: Male Summoner
  • 71: Female Summoner
  • 72: Male Thief
  • 73: Female Thief
  • 74: Male Mediator
  • 75: Female Mediator
  • 76: Male Oracle
  • 77: Female Oracle
  • 78: Male Geomancer
  • 79: Female Geomancer
  • 7A: Male Lancer
  • 7B: Female Lancer
  • 7C: Male Samurai
  • 7D: Female Samurai
  • 7E: Male Ninja
  • 7F: Female Ninja
  • 80: Male Calculator
  • 81: Female Calculator
  • 82: Male Bard
  • 83: Female Dancer
  • 84: Male Mime
  • 85: Female Mime
  • 86: Chocobo
  • 87: Goblin
  • 88: Bomb
  • 89: Coeurl
  • 8A: Squid
  • 8B: Skeleton
  • 8C: Ghost
  • 8D: Ahriman
  • 8E: Cockatrice
  • 8F: Uribo
  • 90: Treant
  • 91: Minotaur
  • 92: Malboro
  • 93: Behemoth
  • 94: Dragon
  • 95: Tiamat
  • 96: Apanda/Byblos
  • 97: Elidibs
  • 98: Dragon
  • 99: Demon
  • 9A: Steel Giant


x00 : Byte (hex)

This value is always set to x00 in the original game; it probably doesn't have a function.


Assigned Unit ID : Byte (hex)

The generated ID will be the inputted value + 0x64.

Ex: By setting x00 will mean to control the unit with Event Instructions, you will have to use the Unit ID x64.

Note: Only 00-03/64-67 seem to work properly at the moment. Further ghostunits seem to ignore event commands, and adding 05/69 after 04/68 seems to cause graphical errors.


  • x00: 0x64
  • x01: 0x65
  • x02: 0x66
  • x03: 0x67
  • x04: 0x68
  • x05: 0x69
  • x06: 0x6A
  • x07: 0x6B
  • x08: 0x6C
  • x09: 0x6D
  • x0A: 0x6E
  • x0B: 0x6F
  • x0C: 0x70
  • x0D: 0x71
  • x0E: 0x72
  • x0F: 0x73

X Coordinate : Byte (unsigned)

X Coordinate on the map.


Y Coordinate : Byte (unsigned)

Y Coordinate on the map.


Elevation : Byte (hex)

  • x00: Low Elevation
  • x01: Higher Elevation


Facing Direction : Byte (hex)

  • x00: South
  • x01: West
  • x02: North
  • x03: East


Drawing : Byte (hex)

  • x00: Draw immediately
  • x01: Hold in memory (use {44} Draw later)