Anonymous

Changes

From Final Fantasy Inside

FF7/Command data

1,430 bytes removed, 16:47, 24 March 2018
Created page with "== KERNEL.BIN - Section 1: Command data format == This section contains the data for Menu commands.<br /> There are 32 entries of 8 bytes in the following format: {| clas..."
== KERNEL.BIN - Section 1: Command data format ==
This section contains the data for Menu commands.<br/>
There are 32 entries of 8 bytes in the following format:
 {| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" alignclass="centerwikitable" ! style="background:rgb(204,204,204); width:50px;" align="center" | Offset! style="background:rgb(204,204,204); width:50px;" | Length! style="background:rgb(204,204,204); width:275px;" colspan="2" | Description
|-
|style="background:rgb(255,255,255)" align="center" | 0x00|style="background:rgb(255,255,255)" | 1 byte|style="background:rgb(255,255,255)" | Initial Cursor Action*
|-
|style="background:rgb(255,255,255)" align="center" | 0x01|style="background:rgb(255,255,255)" | 1 byte|style="background:rgb(255,255,255)" |[[FF7/Battle/Targeting DataTargeting_Data|Target Flags]]
|-
|style="background:rgb(255,255,204);" align="center" | 0x02|style="background:rgb(255,255,204);" | 2 bytes|style="background:rgb(255,255,204);" | Unknown (Always [FFFFh])
|-
|style="background:rgb(255,255,255)" align="center" | 0x04|style="background:rgb(255,255,255)" | 2 bytes|style="background:rgb(255,255,255)" | [[FF7/Battle/Camera Movement Id ListCamera_Movement_Id_List|Camera Movement Id]] for single target.
|-
|style="background:rgb(255,255,255)" align="center" | 0x06|style="background:rgb(255,255,255)" | 2 bytes|style="background:rgb(255,255,255)" | [[FF7/Battle/Camera Movement Id ListCamera_Movement_Id_List|Camera Movement Id]] for multiple targets.
|}
<br/>
<nowiki>*</nowiki>Initial Cursor Action:
The different values will tell it what to do or what menu to bring up:
<br /> *Initial Cursor Action: The different values will tell it what to do or what menu to bring up: {| border="0" cellpadding="3" cellspacingclass="1" style="background: rgb(0,0,0)" align="centerwikitable" |-!style="background:rgb(204,204,204);" align="center" |Value!style="background:rgb(204,204,204);" align="center" |Effect
|-
|style="background:rgb(255,255,255)" | 00h |style="background:rgb(255,255,255)" | Perform command using target data
|-
|style="background:rgb(255,255,255)" | 01h|style="background:rgb(255,255,255)" | Magic Menu
|-
|style="background:rgb(255,255,255)" | 02h|style="background:rgb(255,255,255)" | Summon Menu
|-
|style="background:rgb(255,255,255)" | 03h|style="background:rgb(255,255,255)" | Item Menu
|-
|style="background:rgb(255,255,255)" | 04h|style="background:rgb(255,255,255)" | E.Skill Menu
|-
|style="background:rgb(255,255,255)" | 05h|style="background:rgb(255,255,255)" | Throw Menu
|-
|style="background:rgb(255,255,255)" | 06h|style="background:rgb(255,255,255)" | Limit Menu
|-
|style="background:rgb(255,255,255)" | 07h|style="background:rgb(255,255,255)" | Enable Target Selection via Cursor
|-
|style="background:rgb(255,255,255)" | 08h|style="background:rgb(255,255,255)" | W-Magic Menu
|-
|style="background:rgb(255,255,255)" | 09h|style="background:rgb(255,255,255)" | W-Summon Menu
|-
|style="background:rgb(255,255,255)" | 0Ah|style="background:rgb(255,255,255)" | W-Item Menu
|-
|style="background:rgb(255,255,255)" | 0Bh|style="background:rgb(255,255,255)" | Coin Menu
|}
 The commands themselves are hard-coded into the Battle Engine and their actions cannot be changed via editing the KERNEL.BIN<br/>Example of what this means: If the summon command was changed to bring up the magic menu and Cure was selected, the battle engine would perform Choco/Mog summon instead. Why? Because The Battle Engine is expecting summon data from command 03h. While the target was considered based on the targeting information of Cure, which has the same magic index as Choco/Mog has summon index, the attack the Battle Engine selected to perform was Summon attack 00h which is Choco/Mog.
Anonymous user