Difference between revisions of "Event Instructions"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
!|Example
 
!|Example
 
!|History
 
!|History
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_00|<span title="{{IE_00_desc}}">{00} {{IE_00}}</span>]]'''
 +
|{{IE_00_ex}}
 +
|Introduced
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
Line 58: Line 63:
 
|'''[[Event_Instruction_09|<span title="{{IE_09_desc}}">{09} {{IE_09}}</span>]]'''
 
|'''[[Event_Instruction_09|<span title="{{IE_09_desc}}">{09} {{IE_09}}</span>]]'''
 
|{{IE_09_ex}}
 
|{{IE_09_ex}}
 +
|Introduced
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_0A|<span title="{{IE_0A_desc}}">{0A} {{IE_0A}}</span>]]'''
 +
|{{IE_0A_ex}}
 +
|Introduced
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_0B|<span title="{{IE_0B_desc}}">{0B} {{IE_0B}}</span>]]'''
 +
|{{IE_0B_ex}}
 +
|Introduced
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_0C|<span title="{{IE_0C_desc}}">{0C} {{IE_0C}}</span>]]'''
 +
|{{IE_0C_ex}}
 +
|Introduced
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_0D|<span title="{{IE_0D_desc}}">{0D} {{IE_0D}}</span>]]'''
 +
|{{IE_0D_ex}}
 +
|Introduced
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_0E|<span title="{{IE_0E_desc}}">{0E} {{IE_0E}}</span>]]'''
 +
|{{IE_0E_ex}}
 
|Introduced
 
|Introduced
 
|-
 
|-
Line 78: Line 108:
 
|'''[[Event_Instruction_14|<span title="{{IE_14_desc}}">{14} {{IE_14}}</span>]]'''
 
|'''[[Event_Instruction_14|<span title="{{IE_14_desc}}">{14} {{IE_14}}</span>]]'''
 
|{{IE_14_ex}}
 
|{{IE_14_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_15|<span title="{{IE_15_desc}}">{15} {{IE_15}}</span>]]'''
 
|'''[[Event_Instruction_15|<span title="{{IE_15_desc}}">{15} {{IE_15}}</span>]]'''
 
|{{IE_15_ex}}
 
|{{IE_15_ex}}
|Introduced
+
|
 
|-
 
|-
 
|
 
|
Line 371: Line 401:
 
|-
 
|-
 
|
 
|
|'''[[Event_Instruction_63|<span title="{{IE_63_desc}}">{63} {{IE_63}}(Camera Acceleration)</span>]]'''
+
|'''[[Event_Instruction_63|<span title="{{IE_63_desc}}">{63} {{IE_63}}</span>]]'''
 
|{{IE_63_ex}}
 
|{{IE_63_ex}}
 
|
 
|
Line 563: Line 593:
 
|'''[[Event_Instruction_9A|<span title="{{IE_9A_desc}}">{9A} {{IE_9A}}</span>]]'''
 
|'''[[Event_Instruction_9A|<span title="{{IE_9A_desc}}">{9A} {{IE_9A}}</span>]]'''
 
|{{IE_9A_ex}}
 
|{{IE_9A_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_9B|<span title="{{IE_9B_desc}}">{9B} {{IE_9B}}</span>]]'''
 
|'''[[Event_Instruction_9B|<span title="{{IE_9B_desc}}">{9B} {{IE_9B}}</span>]]'''
 
|{{IE_9B_ex}}
 
|{{IE_9B_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_9C|<span title="{{IE_9C_desc}}">{9C} {{IE_9C}}</span>]]'''
 
|'''[[Event_Instruction_9C|<span title="{{IE_9C_desc}}">{9C} {{IE_9C}}</span>]]'''
 
|{{IE_9C_ex}}
 
|{{IE_9C_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_9D|<span title="{{IE_9D_desc}}">{9D} {{IE_9D}}</span>]]'''
 
|'''[[Event_Instruction_9D|<span title="{{IE_9D_desc}}">{9D} {{IE_9D}}</span>]]'''
 
|{{IE_9D_ex}}
 
|{{IE_9D_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_9E|<span title="{{IE_9E_desc}}">{9E} {{IE_9E}}</span>]]'''
 
|'''[[Event_Instruction_9E|<span title="{{IE_9E_desc}}">{9E} {{IE_9E}}</span>]]'''
 
|{{IE_9E_ex}}
 
|{{IE_9E_ex}}
|Introduced
+
|
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
Line 713: Line 743:
 
|'''[[Event_Instruction_BF|<span title="{{IE_BF_desc}}">{BF} {{IE_BF}}</span>]]'''
 
|'''[[Event_Instruction_BF|<span title="{{IE_BF_desc}}">{BF} {{IE_BF}}</span>]]'''
 
|{{IE_BF_ex}}
 
|{{IE_BF_ex}}
|
+
|Added MODUL param
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
Line 808: Line 838:
 
|'''[[Event_Instruction_E6|<span title="{{IE_E6_desc}}">{E6} {{IE_E6}}</span>]]'''
 
|'''[[Event_Instruction_E6|<span title="{{IE_E6_desc}}">{E6} {{IE_E6}}</span>]]'''
 
|{{IE_E6_ex}}
 
|{{IE_E6_ex}}
|Introduced
+
|Moved
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
Line 828: Line 858:
 
|'''[[Event_Instruction_EA|<span title="{{IE_EA_desc}}">{EA} {{IE_EA}}</span>]]'''
 
|'''[[Event_Instruction_EA|<span title="{{IE_EA_desc}}">{EA} {{IE_EA}}</span>]]'''
 
|{{IE_EA_ex}}
 
|{{IE_EA_ex}}
|Introduced
+
|Moved
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_EB|<span title="{{IE_EB_desc}}">{EB} {{IE_EB}}</span>]]'''
 
|'''[[Event_Instruction_EB|<span title="{{IE_EB_desc}}">{EB} {{IE_EB}}</span>]]'''
 
|{{IE_EB_ex}}
 
|{{IE_EB_ex}}
|Introduced
+
|Moved
 
|-
 
|-
 
|[[File:EIU_icon.png]]
 
|[[File:EIU_icon.png]]
 
|'''[[Event_Instruction_EC|<span title="{{IE_EC_desc}}">{EC} {{IE_EC}}</span>]]'''
 
|'''[[Event_Instruction_EC|<span title="{{IE_EC_desc}}">{EC} {{IE_EC}}</span>]]'''
 
|{{IE_EC_ex}}
 
|{{IE_EC_ex}}
 +
|Moved
 +
|-
 +
|[[File:EIU_icon.png]]
 +
|'''[[Event_Instruction_ED|<span title="{{IE_ED_desc}}">{ED} {{IE_ED}}</span>]]'''
 +
|{{IE_ED_ex}}
 
|Introduced
 
|Introduced
 
|-
 
|-

Revision as of 11:48, 22 February 2021

Mini-Guides

Instructions

EIU icon.png These instructions require the Event Instruction Upgrade hack.

Download the latest CONFIG.INI (2021-02-16)

EIU Instruction Name Example History
EIU icon.png {00} Not Not() Introduced
EIU icon.png {01} If If() Introduced
EIU icon.png {02} ElseIf ElseIf(xVR) Introduced
EIU icon.png {03} Else Else() Introduced
EIU icon.png {04} EndIf EndIf() Introduced
EIU icon.png {05} Switch Switch(xVR) Introduced
EIU icon.png {06} Case Case(xVALU) Introduced
EIU icon.png {07} Default Default() Introduced
EIU icon.png {08} Break Break() Introduced
EIU icon.png {09} EndSwitch EndSwitch() Introduced
EIU icon.png {0A} DefineSub DefineSub(xID) Introduced
EIU icon.png {0B} EndSub EndSub() Introduced
EIU icon.png {0C} CallSub CallSub(xID) Introduced
EIU icon.png {0D} GoTo GoTo(xTG) Introduced
EIU icon.png {0E} GoToTarget GoToTarget(xTG) Introduced
{10} DisplayMessage DisplayMessage(x10,xDT,xMSG#,xID,x00,xPR,+XXXXX,+YYYYY,+ARPOS,xOT)
{11} UnitAnim UnitAnim(xAU,xMT,xANIM,x00)
{13} ChangeMapBeta ChangeMapBeta(MAP,x00)
EIU icon.png {14} PlayTrack PlayTrack(xSG)
EIU icon.png {15} ResetUnitCalculations ResetUnitCalculations()
{16} Pause Pause()
{18} Effect Effect(xEFID,xID,XXX,YYY,x00)
{19} Camera Camera(+XXXXX,+ZZZZZ,+YYYYY,+ANGLE,+MAPRT,+CAMRT,+ZOOM%,+TIMER)
{1A} MapDarkness MapDarkness(xBM,+RED,+GRN,+BLU,TIM)
{1B} MapLight MapLight(+00000,+00000,+?????,+RRRED,+GREEN,+BBLUE,+TIMER)
{1C} EventSpeed EventSpeed(xSP)
{1D} CameraFusionStart CameraFusionStart()
{1E} CameraFusionEnd CameraFusionEnd()
{1F} Focus Focus(xID,x00,xID,x00,x00)
{21} SoundEffect SoundEffect(xSDID)
{22} SwitchTrack SwitchTrack(x01,+VOL,TIM)
{27} ReloadMapState ReloadMapState()
{28} WalkTo WalkTo(xID,x00,XXX,YYY,xEL,x00,+SPD,x01)
{29} WaitWalk WaitWalk(xID,x00)
{2A} BlockStart BlockStart()
{2B} BlockEnd BlockEnd()
{2C} FaceUnit2 FaceUnit2(xFU,x00,xAU,xMT,xCL,xRS,xDL)
{2D} RotateUnit RotateUnit(xAU,xMT,xDR,xCL,xRS,xDL)
{2E} Background Background(RDT,GRT,BLT,RDB,GRB,BLB,TIM,xBS)
EIU icon.png {2F} BlockLoop BlockLoop(LPA,xVR,xDEST)
{31} ColorBGBeta ColorBGBeta(xPR,+RED,+GRN,+BLU,TIM)
{32} ColorUnit ColorUnit(xAU,xMT,xPR,+RED,+GRN,+BLU,TIM)
{33} ColorField ColorField(xPR,+RED,+GRN,+BLU,TIM)
{38} FocusSpeed FocusSpeed(+SPEED)
{3B} SpriteMove SpriteMove(xID,x00,+XXXXX,+ZZZZZ,+YYYYY,xMV,x??,+TIMER)
{3C} Weather Weather(xWP,x01)
{3D} RemoveUnit RemoveUnit(xID,x00)
{3E} ColorScreen ColorScreen(xBM,IRD,IGR,IBL,TRD,TGR,TBL,+TIMER)
{41} EarthquakeStart EarthquakeStart(MAG,MER,SMG,SSD)
{42} EarthquakeEnd EarthquakeEnd()
{43} CallFunction CallFunction(xFC)
{44} Draw Draw(xID,x00)
{45} AddUnit AddUnit(xID,x00,xDR)
{46} Erase Erase(xID,x00)
{47} AddGhostUnit AddGhostUnit(xSP,x00,xID,XXX,YYY,xEL,xFD,xDR)
{48} WaitAddUnit WaitAddUnit()
{49} AddUnitStart AddUnitStart()
{4A} AddUnitEnd AddUnitEnd()
{4B} WaitAddUnitEnd WaitAddUnitEnd()
{4C} ChangeMap ChangeMap(MAP,x00)
{4D} Reveal Reveal(TIM)
{4E} UnitShadow UnitShadow(xID,x00,xSH)
{4F} SetDaytime SetDaytime(xDT)
{50} PortraitCol PortraitCol(xPC)
{51} ChangeDialog ChangeDialog(xDB,xMSG#,xPR,xPP)
{53} FaceUnit FaceUnit(xFU,x00,xAU,xMT,xCL,xRS,xDL)
{54} Use3DObject Use3DObject(xID,xST)
{55} UseFieldObject UseFieldObject(xID,x00)
{56} Wait3DObject Wait3DObject()
{57} WaitFieldObject WaitFieldObject()
{58} LoadEVTCHR LoadEVTCHR(xBL,xEV,x00)
{59} SaveEVTCHR SaveEVTCHR(xBL)
{5A} SaveEVTCHRClear SaveEVTCHRClear(xBL,x00)
{5B} LoadEVTCHRClear LoadEVTCHRClear(xBL,x00)
{5E} EndTrack EndTrack(x??)
{5F} WarpUnit WarpUnit(xID,x00,XXX,YYY,xEL,xFD)
{60} FadeSound FadeSound(x00,TIM)
{63} CameraSpeedCurve CameraSpeedCurve(xPA)
{64} WaitRotateUnit WaitRotateUnit(xID,x00)
{65} WaitRotateAll WaitRotateAll()
{68} MirrorSprite MirrorSprite(xID,x00,xMI)
{69} FaceTile FaceTile(xAU,xMT,XXX,YYY,x00,xCL,xRS,xDL)
{6A} EditBGSound EditBGSound(xSD,+ECH,+VOL,x00,xWT)
{6B} BGSound BGSound(xSD,+ECH,+VOL,xST,TIM)
{6E} SpriteMoveBeta SpriteMoveBeta(xID,x00,+XXXXX,+ZZZZZ,+YYYYY,xMV,x??,+SPEED)
{6F} WaitSpriteMove WaitSpriteMove(xID,x00)
{70} Jump Jump(xID,x00,DST,xDR)
{76} DarkScreen DarkScreen(x00,xSH,ESP,RTS,x00,SES)
{77} RemoveDarkScreen RemoveDarkScreen()
{78} DisplayConditions DisplayConditions(xMG,DST)
{79} WalkToAnim WalkToAnim(xID,x00,xANIM)
{7A} DismissUnit DismissUnit(xJB,x00)
{7D} ShowGraphic ShowGraphic(xGR)
{7E} WaitValue WaitValue(xADDR,xVALU)
{7F} EVTCHRPalette EVTCHRPalette(xID,x00,xBL,xPL)
{80} March March(xAU,xMT,TIM)
{83} ChangeStats ChangeStats(xAU,xMT,xST,+VALUE)
{84} PlayTune PlayTune(xSG)
{85} UnlockDate UnlockDate(xTL)
{86} TempWeapon TempWeapon(xID,x00,xIT)
{87} Arrow Arrow(xTG,x00,xSH,x00)
{88} MapUnfreeze MapUnfreeze()
{89} MapFreeze MapFreeze()
{8A} EffectStart EffectStart()
{8B} EffectEnd EffectEnd()
{8C} UnitAnimRotate UnitAnimRotate(xID,x00,xDR,xANIM,x00)
EIU icon.png {8D} Inventory Inventory(xPA,xID,xVA) Introduced
{8E} WaitGraphicPrint WaitGraphicPrint()
{91} ShowMapTitle ShowMapTitle(+XXX,+YYY,+SPD)
{92} InflictStatus InflictStatus(xID,x00,xSS,x0C,x00)
{94} TeleportOut TeleportOut(xID,x00)
{96} AppendMapState AppendMapState()
{97} ResetPalette ResetPalette(xID,x00)
{98} TeleportIn TeleportIn(xID,x00)
{99} BlueRemoveUnit BlueRemoveUnit(xID,x00)
EIU icon.png {9A} ResetTextIncrement ResetTextIncrement()
EIU icon.png {9B} PushTextVal PushTextVal(xVALU)
EIU icon.png {9C} PushTextVar PushTextVar(xVR)
EIU icon.png {9D} SetTextVal SetTextVal(xTV,xVALU)
EIU icon.png {9E} SetTextVar SetTextVar(xTV,xVR)
EIU icon.png {9F} ButtonPressGoTo ButtonPressGoTo(xBUTT,xGT) Introduced
{A0} LTE LTE()
{A1} GTE GTE()
{A2} EQ EQ()
{A3} NEQ NEQ()
{A4} LT LT()
{A5} GT GT()
EIU icon.png {AC} LUI LUI(xVARI,xVALU)
EIU icon.png {AE} SET SET(xVARI,xVALU)
EIU icon.png {AF} SETVar SETVar(xVAR1,xVAR2)
{B0} ADD ADD(xVARI,xVALU)
{B1} ADDVar ADDVar(xVAR1,xVAR2)
{B2} SUB SUB(xVARI,xVALU)
{B3} SUBVar SUBVar(xVAR1,xVAR2)
{B4} MULT MULT(xVARI,xVALU)
{B5} MULTVar MULTVar(xVAR1,xVAR2)
{B6} DIV DIV(xVARI,xVALU)
{B7} DIVVar DIVVar(xVAR1,xVAR2)
{B8} MOD MOD(xVARI,xVALU)
{B9} MODVar MODVar(xVAR1,xVAR2)
{BA} AND AND(xVARI,xVALU)
{BB} ANDVar ANDVar(xVAR1,xVAR2)
{BC} OR OR(xVARI,xVALU)
{BD} ORVar ORVar(xVAR1,xVAR2)
{BE} ZERO ZERO(xVARI)
EIU icon.png {BF} Random Random(xVR,MODUL) Added MODUL param
EIU icon.png {C1} LoadAddress LoadAddress(xVR,xVALU,xVA,LEN)
EIU icon.png {C2} UnitAddress UnitAddress(xID,xVR)
EIU icon.png {C3} WorldUnitAddress WorldUnitAddress(xID,xVR)
EIU icon.png {C4} SaveAddress SaveAddress(xVR,xVALU,xVA,LEN)
EIU icon.png {C5} UpdateUnit UpdateUnit(xID,xPR)
EIU icon.png {C6} TransformUnit TransformUnit(xAV,xPA,xJB)
EIU icon.png {CC} ResetTurnCounter ResetTurnCounter(xID) Introduced
EIU icon.png {CD} PostEvent PostEvent(xAC,xSCEN) Introduced
EIU icon.png {CE} LoadConditionals LoadConditionals(xCOND) Introduced
EIU icon.png {CF} Routine Routine(rROUTINEA)
{D0} JumpForwardIfZero JumpForwardIfZero(xJF)
{D1} JumpForward JumpForward(xJF)
{D2} ForwardTarget ForwardTarget(xJF)
{D3} JumpBack JumpBack(xJB)
{D5} BackTarget BackTarget(xJB)
{DB} EventEnd EventEnd()
{E3} EventEnd2 EventEnd2()
{E5} WaitForInstruction WaitForInstruction(xIN,x00)
EIU icon.png {E6} AlterParameter AlterParameter(xPR,xVR) Moved
EIU icon.png {E7} GetTileUnit GetTileUnit(+XXX,+YYY,xEL) Introduced
EIU icon.png {E8} LoadTileData LoadTileData(xVR,xBO,+XXX,+YYY,xEL) Introduced
EIU icon.png {E9} SaveTileData SaveTileData(xVR,xBO,+XXX,+YYY,xEL) Introduced
EIU icon.png {EA} LoadENTD LoadENTD(xENTD,xUNIT) Moved
EIU icon.png {EB} LoadENTDUnit LoadENTDUnit(xID,xES,xBS,xFL) Moved
EIU icon.png {EC} ConditionalDefeat ConditionalDefeat(xCD) Moved
EIU icon.png {ED} LoadDatabase LoadDatabase(OFF,LEN) Introduced
EIU icon.png {EE} GetTableSize GetTableSize(xVR,xTB) Introduced
EIU icon.png {EF} FetchTableRow FetchTableRow(xTB,xVR) Introduced
{F1} Wait Wait(TIMER)
{F2} Pad Pad()

Unused and Unknown Instructions

Instruction ID
{12}
{17} Never used
{23} Never used
{24} Never used
{25} Never used
{26} Never used
{37} Never used
{39}
{3A}
{3F} Never used
{40}
{5C} Never used
{5D} Never used
{61} Never used
{62} Never used
{66}
{6C} Never used
{6D}
{71}
{72} Never used
{73}
{74} Never used
{75}
{7B}
{7C}
{81} Never used
{82}
{8F}
{90}
{93}
{95} Never used
{C0} Never used
{D4}
{D8} Never used
{D9} Never used
{DA} Never used
{DC} Never used
{E0} Never used
{F0}