Difference between revisions of "FF7/Item data"

From Final Fantasy Inside
< FF7
Jump to navigation Jump to search
my_wiki>NFITC1
m (27 revisions imported)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== KERNEL.BIN - Section 5: Item data format ==
 
== KERNEL.BIN - Section 5: Item data format ==
  
This section contains the item data. Each item record is 27 bytes long.  
+
This section contains the item data. Each item record is 28 bytes long.  
  
 
{| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="center"
 
{| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="center"
Line 8: Line 8:
 
! style="background:rgb(204,204,204); width:350px;" colspan="2" | Description
 
! style="background:rgb(204,204,204); width:350px;" colspan="2" | Description
 
|-
 
|-
|style="background:rgb(255,255,255);" align="center" | 0x00
+
|style="background:rgb(255,255,204);" align="center" | 0x00
|style="background:rgb(255,255,255);" | 8 bytes
+
|style="background:rgb(255,255,204);" | 8 bytes
|style="background:rgb(255,255,255); width: 110px;" | Unknown
+
|style="background:rgb(255,255,204); width: 110px;" | Unknown
|style="background:rgb(255,255,255);" | Always 0xFFFFFFFF
+
|style="background:rgb(255,255,204);" | Always 0xFFFFFFFF
 
|-
 
|-
|style="background:rgb(255,255,204);" align="center" | 0x08
+
|style="background:rgb(255,255,255);" align="center" | 0x08
|style="background:rgb(255,255,204);" | 2 bytes
+
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,204);" colspan="2" | Unknown
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Camera Movement Id List|Camera Movement Id]] for single and multiple target attack.
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x0A
 
|style="background:rgb(255,255,255);" align="center" | 0x0A
|style="background:rgb(255,255,255);" | 2 byte
+
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,255);" colspan="2" | Restriction Mask
+
|style="background:rgb(255,255,255);" colspan="2" | Restriction Mask (If the following bits are 0)
 
|-
 
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="10" | &nbsp;
+
|style="background:rgb(204,204,255);" colspan="2" rowspan="3" | &nbsp;
|style="background:rgb(255,255,255);" | 0xFF
+
|style="background:rgb(255,255,255);" | 01h
|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in<br />Battle Menu (Not usable at all)
+
|style="background:rgb(255,255,255);" | Can be sold
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0xFE
+
|style="background:rgb(255,255,255);" | 02h
|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Not<br />usable at all)
+
|style="background:rgb(255,255,255);" | Can be used in Battle
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0xFD
+
|style="background:rgb(255,255,255);" | 04h
|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in<br />Battle Menu (Usable in Battle Menu)
+
|style="background:rgb(255,255,255);" | Can be used in Menu Out of Battle
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0xFC
+
|style="background:rgb(255,255,255);" align="center" | 0x0C
|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable<br /> in Battle Menu)
+
|style="background:rgb(255,255,255);" | 1 byte
|-
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Targeting Data|Target Flags]]
|style="background:rgb(255,255,255);" | 0xFB
 
|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in<br />Battle Menu (Usable in Item Menu)
 
|-
 
|style="background:rgb(255,255,255);" | 0xFA
 
|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable<br />in Item Menu)
 
|-
 
|style="background:rgb(255,255,255);" | 0xF9
 
|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in<br />Battle Menu (Usable in Item Menu & Battle Menu)
 
|-
 
|style="background:rgb(255,255,255);" | 0xF8
 
|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable<br />in Item Menu & Battle Menu)
 
|-
 
|style="background:rgb(255,255,255);" | 0xF7
 
|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in<br />Battle Menu (Usable in Battle Menu)
 
|-
 
|style="background:rgb(255,255,255);" | 0xF6
 
|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable<br />in Battle Menu)
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x0B
 
|style="background:rgb(255,255,255);" | 1 bytes
 
|style="background:rgb(255,255,255);" colspan="2" | Attack Target
 
|-
 
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="5" | &nbsp;
 
|style="background:rgb(255,255,255);" | 0x01
 
|style="background:rgb(255,255,255);" | One Target
 
|-
 
|style="background:rgb(255,255,204);" | 0x03
 
|style="background:rgb(255,255,204);" | Unknown
 
|-
 
|style="background:rgb(255,255,255);" | 0x05
 
|style="background:rgb(255,255,255);" | Multiple Targets
 
|-
 
|style="background:rgb(255,255,204);" | 0x07
 
|style="background:rgb(255,255,204);" | Unknown
 
|-
 
|style="background:rgb(255,255,255);" | 0x10
 
|style="background:rgb(255,255,255);" | On Party Only
 
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x0D
 
|style="background:rgb(255,255,255);" align="center" | 0x0D
 
|style="background:rgb(255,255,255);" | 1 byte
 
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Item ID
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Attack Effect Id List|Attack Effect Id]]
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x0E
 
|style="background:rgb(255,255,255);" align="center" | 0x0E
 
|style="background:rgb(255,255,255);" | 1 byte
 
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Restore Apply
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Damage Calculation|Damage Calculation]]
 
|-
 
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="10" | &nbsp;
+
|style="background:rgb(255,255,255);" align="center" | 0x0F
|style="background:rgb(255,255,204);" | 0x00
+
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,204);" | Unknown
+
|style="background:rgb(255,255,255);" colspan="2" | Item power for damage calculation.
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0x08
+
|style="background:rgb(255,255,255)" align="center" | 0x10
|style="background:rgb(255,255,255);" | Apply also to MP
+
|style="background:rgb(255,255,255)" | 1 byte
 +
|style="background:rgb(255,255,255)" colspan="2" | Condition sub-menu
 
|-
 
|-
|style="background:rgb(255,255,204);" | 0x22
+
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="4" | &nbsp;
|style="background:rgb(255,255,204);" | Unknown
+
|style="background:rgb(255,255,255)" | 00
|-
+
|style="background:rgb(255,255,255)" | Party HP
|style="background:rgb(255,255,204);" | 0x23
 
|style="background:rgb(255,255,204);" | Unknown
 
|-
 
|style="background:rgb(255,255,255);" | 0x24
 
|style="background:rgb(255,255,255);" | Damage / Restore by %
 
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0x26
+
|style="background:rgb(255,255,255)" | 01
|style="background:rgb(255,255,255);" | Damage / Restore by 20 X Amount Multiplier
+
|style="background:rgb(255,255,255)" | Party MP
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0x37
+
|style="background:rgb(255,255,255)" | 02
|style="background:rgb(255,255,255);" | Causes Damage
+
|style="background:rgb(255,255,255)" | Party Status
 
|-
 
|-
|style="background:rgb(255,255,204);" | 0x47
+
|style="background:rgb(255,255,255)" | Other
|style="background:rgb(255,255,204);" | Unknown
+
|style="background:rgb(255,255,255)" | None
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0x50
+
|style="background:rgb(255,255,255)" align="center" | 0x11
|style="background:rgb(255,255,255);" | Affects Stats
+
|style="background:rgb(255,255,255)" | 1 byte
 +
|style="background:rgb(255,255,255)" colspan="2" | Status Effect Change
 
|-
 
|-
|style="background:rgb(255,255,255);" | 0xFF
+
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="3" | &nbsp;
|style="background:rgb(255,255,255);" | None
+
|style="background:rgb(255,255,255)" | 3Fh
 +
|style="background:rgb(255,255,255)" | Chance to Inflict/Heal status (out of 63)
 
|-
 
|-
|style="background:rgb(255,255,255);" align="center" | 0x0F
+
|style="background:rgb(255,255,255)" | 40h
|style="background:rgb(255,255,255);" | 1 byte
+
|style="background:rgb(255,255,255)" | Cure if inflicted
|style="background:rgb(255,255,255);" colspan="2" | Amount Multiplier
 
 
|-
 
|-
|style="background:rgb(255,255,255);" align="center" | 0x10
+
|style="background:rgb(255,255,255)" | 80h
|style="background:rgb(255,255,255);" | 1 byte
+
|style="background:rgb(255,255,255)" | Cure if inflicted, Inflict if not
|style="background:rgb(255,255,255);" colspan="2" | Restore Type
 
|-
 
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="4" | &nbsp;
 
|style="background:rgb(255,255,255);" | 0x00
 
|style="background:rgb(255,255,255);" | Restore HP
 
|-
 
|style="background:rgb(255,255,255);" | 0x01
 
|style="background:rgb(255,255,255);" | Restore MP
 
|-
 
|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);" | 1 byte
 
|style="background:rgb(255,255,204);" colspan="2" | Unknown
 
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x12
 
|style="background:rgb(255,255,255);" align="center" | 0x12
 
|style="background:rgb(255,255,255);" | 1 byte
 
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Attack_Special_Effects|Additional Effects]]
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Attack_Special_Effects|Attack Additional Effects]]
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x13
 
|style="background:rgb(255,255,255);" align="center" | 0x13
Line 146: Line 88:
 
|style="background:rgb(255,255,255);" align="center" | 0x14
 
|style="background:rgb(255,255,255);" align="center" | 0x14
 
|style="background:rgb(255,255,255);" | 4 bytes
 
|style="background:rgb(255,255,255);" | 4 bytes
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Status_Effects|Status effects]]
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Status Effects|Status Effects]]
 
|-
 
|-
 
|style="background:rgb(255,255,255);" align="center" | 0x18
 
|style="background:rgb(255,255,255);" align="center" | 0x18
 
|style="background:rgb(255,255,255);" | 2 bytes
 
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Elemental_Data|Element]]
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Elemental_Data|Attack Element]]
 
|-
 
|-
|style="background:rgb(255,255,204);" align="center" | 0x1A
+
|style="background:rgb(255,255,255);" align="center" | 0x1A
|style="background:rgb(255,255,204);" | 2 bytes
+
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,204);" colspan="2" | Unknown
+
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Special Attack Flags|Special Attack Flags]]
 
|}
 
|}

Latest revision as of 05:19, 23 May 2019

KERNEL.BIN - Section 5: Item data format

This section contains the item data. Each item record is 28 bytes long.

Offset Length Description
0x00 8 bytes Unknown Always 0xFFFFFFFF
0x08 2 bytes Camera Movement Id for single and multiple target attack.
0x0A 2 bytes Restriction Mask (If the following bits are 0)
  01h Can be sold
02h Can be used in Battle
04h Can be used in Menu Out of Battle
0x0C 1 byte Target Flags
0x0D 1 byte Attack Effect Id
0x0E 1 byte Damage Calculation
0x0F 1 byte Item power 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 Effects
0x18 2 bytes Attack Element
0x1A 2 bytes Special Attack Flags