Difference between revisions of "TransformUnit"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "= {C6} {{IE_C6}} = {{IE_C6_ex}} {{IE_C6_desc}} See also: {C1} {{IE_C1}}{C2} {{IE_C2}} ― Event_Instruction_C3|{C3}...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
__FORCETOC__
 
= {C6} {{IE_C6}} =
 
= {C6} {{IE_C6}} =
 
{{IE_C6_ex}}
 
{{IE_C6_ex}}
  
{{IE_C6_desc}}
+
Levels down a character and levels them back up to the same level as a new one, changing their Main ID, Job ID and Gender accordingly.
  
 +
Accurately preserves stats as much as possible (within the 3 byte raw stat length). There might be some loss of stats changing back and forth if one of the two jobs has insanely efficient stat growths, capping to 0xFFFFFF before level 99, but this is usually only achieved through cheating anyway.
  
See also: [[Event_Instruction_C1|{C1} {{IE_C1}}]] ― [[Event_Instruction_C2|{C2} {{IE_C2}}]] ― [[Event_Instruction_C3|{C3} {{IE_C3}}]] ― [[Event_Instruction_C4|{C4} {{IE_C4}}]]
 
  
 +
See also: [[Event_Instruction_C2|{C2} {{IE_C2}}]], [[Event_Instruction_C3|{C3} {{IE_C3}}]]
  
== Variable : Byte (hex) ==
 
ID of the Variable which will be written to.
 
  
Warning: Only x00-x7F (words) are valid with this instruction!
+
== Address Variable : Byte (hex) ==
{{Variables}}
+
The variable which holds the memory address to the unit. Specify 0x02 in parameters to make it a WORLD address, otherwise it will be considered a BATTLE address.
  
  
 
== Parameters : Byte (hex) ==
 
== Parameters : Byte (hex) ==
*x01: No minimum value
+
*0x80: New Gender Male
*x02: No maximum value
+
*0x40: New Gender Female
 +
*0x20: New Gender Monster
 +
*0x04: Unequip Before Transforming
 +
*0x02: World Address Variable
  
 
+
== To Job ID : Byte (hex) ==
== Minimum Value : Half-word (unsigned) ==
+
Target Job ID. Also replaces the Main ID if the Job ID is not a generic job.
If the value is smaller than this number, is will be set to this value. Includes negative numbers.
 
 
 
 
 
== Maximum Value : Half-word (unsigned) ==
 
If the value is greater than this number, it will be set to this value.
 

Latest revision as of 21:06, 28 April 2022

{C6} TransformUnit

TransformUnit(xAV,xPA,xJB)

Levels down a character and levels them back up to the same level as a new one, changing their Main ID, Job ID and Gender accordingly.

Accurately preserves stats as much as possible (within the 3 byte raw stat length). There might be some loss of stats changing back and forth if one of the two jobs has insanely efficient stat growths, capping to 0xFFFFFF before level 99, but this is usually only achieved through cheating anyway.


See also: {C2} UnitAddress, {C3} WorldUnitAddress


Address Variable : Byte (hex)

The variable which holds the memory address to the unit. Specify 0x02 in parameters to make it a WORLD address, otherwise it will be considered a BATTLE address.


Parameters : Byte (hex)

  • 0x80: New Gender Male
  • 0x40: New Gender Female
  • 0x20: New Gender Monster
  • 0x04: Unequip Before Transforming
  • 0x02: World Address Variable

To Job ID : Byte (hex)

Target Job ID. Also replaces the Main ID if the Job ID is not a generic job.