ColorUnit

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

{32} ColorUnit

ColorUnit(xAU,xMT,xPR,+RED,+GRN,+BLU,TIM)

Colors a unit gradually depending on its current state.

(+127,-128,-128) is red and (+127,+127,+127) is white while (+000,+000,+000) returns the unit to its original color.


See Also: {2E} Background{31} ColorBGBeta{33} ColorField


Affected Units : Byte (hex)

If Multi Targeting is set to x00:

  • Unit ID: ID of the unit specified in the ENTD.

If Multi Targeting is set to x01:

  • x00: Player's Team (blue)
  • x01: Player's Team (blue)
  • x02: All Enemy Teams (red/green/lightblue)
  • x03: All Enemy Teams (red/green/lightblue)
  • x04: All Teams


Multi Targeting : Byte (hex)

  • x00: One Target → Unit ID
  • x01: Various outcomes; see Affected Unit(s)
  • x02: Target All Teams


Preset Color : Byte (hex)

Instead of setting RGB values, you can pick any of the preset colors:

  • x01 : Covered in shadows
  • x02 : Petrified/Grayscale
  • x04 : Original palette?
  • x08 : Original palette?
  • x10 : Completely Green
  • x20 : Completely Green
  • x40 : Completely Green
  • x80 : Completely Green


Red : Byte (signed)

Red value of the RGB color.


Green : Byte (signed)

Green value of the RGB color.


Blue : Byte (signed)

Blue value of the RGB color.


Time : Byte (unsigned)

Time assigned in frames to complete the instruction. One frame is the equivalent of 1/60th of a second.

  • 030 = 0,5 second
  • 060 = 1 second
  • 120 = 2 seconds
  • 180 = 3 seconds
  • 255 = 4,25 seconds


Specific color arrangements

Undead: ColorUnit(x??,x00,x01,+004,+000,+005,002)