Difference between revisions of "FF7/Attack data"

From Final Fantasy Inside
< FF7
Jump to navigation Jump to search
my_wiki>Halkun
(Attack data format)
m (28 revisions imported)
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== KERNEL.BIN - Section 2: Attack data format ==
+
== KERNEL.BIN - Section 2: Attack data format ==
 
+
''(Note: Akari and NFITC1 have some minor differences with respect to information on this page. Most of this page comes from NFITC1's work on WallMarket)''
 
This section contains the data for the different attacks. Each record is 28 bytes long.
 
This section contains the data for the different attacks. Each record is 28 bytes long.
 
+
{| class="wikitable"
{| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="center"
 
! 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,204)" align="center" | 0x00
+
! Offset
|style="background:rgb(255,255,204)" | 4 bytes
+
! Length
|style="background:rgb(255,255,204)" colspan="2" | Unknown
+
! Description
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x04
+
| 0x00
|style="background:rgb(255,255,255)" | 1 byte
+
| 1 byte
|style="background:rgb(255,255,255)" colspan="2" | Casting cost
+
| Attack %
 
|-
 
|-
|style="background:rgb(255,255,204)" align="center" | 0x05
+
| 0x01
|style="background:rgb(255,255,204)" | 5 bytes
+
| 1 byte
|style="background:rgb(255,255,204)" colspan="2" | Unknown
+
| [[FF7/Battle/Impact_Effect_Id_List|Impact Effect Id]]
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x0A
+
| 0x02
|style="background:rgb(255,255,255)" | 1 byte
+
| 1 byte
|style="background:rgb(255,255,255)" colspan="2" | Attack type
+
| Target Hurt Action Index
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x0B
+
| 0x03
|style="background:rgb(255,255,255)" | 2 bytes
+
| 1 byte
|style="background:rgb(255,255,255)" colspan="2" | Attack attribute
+
| Unknown
 
|-
 
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="16" | &nbsp;
+
| 0x04
|style="background:rgb(255,255,255); width:110px" | 0x0000
+
| 2 byte
|style="background:rgb(255,255,255); width:165px" | Escape/Exit-Type
+
| Casting cost
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0001
+
| 0x06
|style="background:rgb(255,255,255)" | Ribbon-Like
+
| 2 bytes
 +
| [[FF7/Battle/Sound_Effect_Id_List|Impact Sound]]
 
|-
 
|-
|style="background:rgb(255,255,204)" | 0x0003
+
| 0x08
|style="background:rgb(255,255,204)" | Enemy Skill (?)
+
| 2 bytes
 +
| [[FF7/Battle/Camera_Movement_Id_List?redlink=1|Camera Movement Id]] for single target.
 
|-
 
|-
|style="background:rgb(255,255,204)" | 0x0005
+
| 0x0A
|style="background:rgb(255,255,204)" | Enemy Skill (?)
+
| 2 bytes
 +
| [[FF7/Battle/Camera_Movement_Id_List?redlink=1|Camera Movement Id]] for multiple targets.
 
|-
 
|-
|style="background:rgb(255,255,204)" | 0x0007
+
| 0x0C
|style="background:rgb(255,255,204)" | Enemy Skill (?)
+
| 1 byte
 +
| [[FF7/Battle/Targeting_Data|Target Flags]]
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x000D
+
| 0x0D
|style="background:rgb(255,255,255)" | Restorative/Protective
+
| 1 byte
 +
| [[FF7/Battle/Attack_Effect_Id_List|Attack Effect Id]]
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x000F
+
| 0x0E
|style="background:rgb(255,255,255)" | Status-giving/Elemental
+
| 1 byte
 +
| [[FF7/Battle/Damage_Calculation|Damage Calculation]]
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0011
+
| 0x0F
|style="background:rgb(255,255,255)" | Shield
+
| 1 byte
 +
| Strength of attack for damage calculation
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0013
+
| 0x10
|style="background:rgb(255,255,255)" | Limit Break
+
| 1 byte
 +
| Condition sub-menu
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0015
+
| style="background: rgb(204,204,255)" rowspan="4" colspan="1" align="center" |
|style="background:rgb(255,255,255)" | Cait Sith Limit Break
+
| 00
 +
| Party HP
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0017
+
| 01
|style="background:rgb(255,255,255)" | Summon
+
| Party MP
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x00C7
+
| 02
|style="background:rgb(255,255,255)" | Roulette
+
| Party Status
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x0097
+
| Other
|style="background:rgb(255,255,255)" | Multiple Strike Limit Breaks
+
| None
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0xFF01
+
| 0x11
|style="background:rgb(255,255,255)" | Phoenix Down
+
| 1 byte
 +
| Status Effect Change
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0xFF03
+
| style="background: rgb(204,204,255)" rowspan="3" colspan="1" align="center" |
|style="background:rgb(255,255,255)" | X-needles Attack
+
| 3Fh
 +
| Chance to Inflict/Heal status (out of 63)
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0xFF17
+
| 40h
|style="background:rgb(255,255,255)" | Final Limit Break
+
| Cure if inflicted
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x0D
+
| 80h
|style="background:rgb(255,255,255)" | 1 byte
+
| Cure if inflicted, Inflict if not
|style="background:rgb(255,255,255)" colspan="2" | ID Number
 
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x0E
+
| 0x12
|style="background:rgb(255,255,255)" | 1 byte
+
| 1 byte
|style="background:rgb(255,255,255)" colspan="2" | Restore Apply
+
| [[FF7/Battle/Attack_Special_Effects|Attack Additional Effects]]
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x0F
+
| 0x13
|style="background:rgb(255,255,255)" | 1 byte
+
| 1 byte
|style="background:rgb(255,255,255)" colspan="2" | Strength
+
| Additional Effects Modifier
 
|-
 
|-
|style="background:rgb(255,255,255)" align="center" | 0x10
+
| 0x14
|style="background:rgb(255,255,255)" | 1 byte
+
| 4 bytes
|style="background:rgb(255,255,255)" colspan="2" | Restore type
+
| [[FF7/Battle/Status_Effects|Status]]
 
|-
 
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="4" | &nbsp;
+
| 0x18
|style="background:rgb(255,255,255)" | 0x00
+
| 2 bytes
|style="background:rgb(255,255,255)" | Restore HP
+
| [[FF7/Battle/Elemental_Data|Element]]
 
|-
 
|-
|style="background:rgb(255,255,255)" | 0x01
+
| 0x1A
|style="background:rgb(255,255,255)" | Restore MP
+
| 2 bytes
|-
+
| [[FF7/Battle/Special_Attack_Flags|Special Attack Flags]]
|style="background:rgb(255,255,255)" | 0x02
 
|style="background:rgb(255,255,255)" | Restore Ailment
 
|-
 
|style="background:rgb(255,255,255)" | 0xFF
 
|style="background:rgb(255,255,255)" | None
 
|-
 
|style="background:rgb(255,255,204)" align="center" | 0x11
 
|style="background:rgb(255,255,204)" | 2 bytes
 
|style="background:rgb(255,255,204)" colspan="2" | Unknown
 
|-
 
|style="background:rgb(255,255,255)" align="center" | 0x13
 
|style="background:rgb(255,255,255)" | 1 byte
 
|style="background:rgb(255,255,255)" colspan="2" | Times attacking
 
|-
 
|style="background:rgb(255,255,255)" align="center" | 0x14
 
|style="background:rgb(255,255,255)" | 4 bytes
 
|style="background:rgb(255,255,255)" colspan="2" | Status
 
|-
 
|style="background:rgb(255,255,255)" align="center" | 0x18
 
|style="background:rgb(255,255,255)" | 2 bytes
 
|style="background:rgb(255,255,255)" colspan="2" | Element
 
|-
 
|style="background:rgb(255,255,204)" align="center" | 0x20
 
|style="background:rgb(255,255,204)" | 2 bytes
 
|style="background:rgb(255,255,204)" colspan="2" | Unknown
 
 
|}
 
|}

Latest revision as of 05:10, 23 May 2019

KERNEL.BIN - Section 2: Attack data format

(Note: Akari and NFITC1 have some minor differences with respect to information on this page. Most of this page comes from NFITC1's work on WallMarket) This section contains the data for the different attacks. Each record is 28 bytes long.

Offset Length Description
0x00 1 byte Attack %
0x01 1 byte Impact Effect Id
0x02 1 byte Target Hurt Action Index
0x03 1 byte Unknown
0x04 2 byte Casting cost
0x06 2 bytes Impact Sound
0x08 2 bytes Camera Movement Id for single target.
0x0A 2 bytes Camera Movement Id for multiple targets.
0x0C 1 byte Target Flags
0x0D 1 byte Attack Effect Id
0x0E 1 byte Damage Calculation
0x0F 1 byte Strength of attack for damage calculation
0x10 1 byte Condition sub-menu
00 Party HP
01 Party MP
02 Party Status
Other None
0x11 1 byte Status Effect Change
3Fh Chance to Inflict/Heal status (out of 63)
40h Cure if inflicted
80h Cure if inflicted, Inflict if not
0x12 1 byte Attack Additional Effects
0x13 1 byte Additional Effects Modifier
0x14 4 bytes Status
0x18 2 bytes Element
0x1A 2 bytes Special Attack Flags