Difference between revisions of "FF7/Weapon data"

From Final Fantasy Inside
< FF7
Jump to navigation Jump to search
my_wiki>Akari
(KERNEL.BIN - Section 6: Weapon data format)
my_wiki>Akari
(KERNEL.BIN - Section 6: Weapon data format)
Line 26: Line 26:
 
|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/DamageFormula|Damage formula]]
 
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/DamageFormula|Damage formula]]
|-
 
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="10" | &nbsp;
 
|style="background:rgb(255,255,255);" | 0x11
 
|style="background:rgb(255,255,255);" | Normal
 
|-
 
|style="background:rgb(255,255,255);" | 0xA0
 
|style="background:rgb(255,255,255);" | 1 + Number of Status Effects Tifa has out of following:
 
Near-death, Poison, Sadness, Silence, Slow, Darkness + 2<br /> * Number of Status Effects Tifa has out of following:<br />Death-sentence, Slow-numb
 
|-
 
|style="background:rgb(255,255,255);" | 0xA1
 
|style="background:rgb(255,255,255);" | Power up when near death
 
|-
 
|style="background:rgb(255,255,255);" | 0xA2
 
|style="background:rgb(255,255,255);" | 1 + Number of Allies in Death Status
 
|-
 
|style="background:rgb(255,255,255);" | 0xA3
 
|style="background:rgb(255,255,255);" | (Target's Level / 16) When used against allies, the weapon<br />will act like a physical hit, but will cause not damage (not<br />even a Miss or a 0). The Weapon has no Morph modifier;<br />it does the same damage with or without Morph.<br />(Conformer)
 
|-
 
|style="background:rgb(255,255,255);" | 0xA4
 
|style="background:rgb(255,255,255);" | (1 + [48 * Player's HP / Player's Max HP]) / 16
 
|-
 
|style="background:rgb(255,255,255);" | 0xA5
 
|style="background:rgb(255,255,255);" | (1 + [48 * Player's MP / Player's Max MP]) / 16
 
|-
 
|style="background:rgb(255,255,255);" | 0xA6
 
|style="background:rgb(255,255,255);" | (1 + [Total AP on Weapon / 10000]) / 16
 
|-
 
|style="background:rgb(255,255,255);" | 0xA7
 
|style="background:rgb(255,255,255);" | (10 + [Player's Kills / 128]) / 16
 
|-
 
|style="background:rgb(255,255,255);" | 0xA8
 
|style="background:rgb(255,255,255);" | (1 + [Player's Limit Level * Player's Limit Units / 16]) / 16
 
 
|-
 
|-
 
|style="background:rgb(255,255,204);" align="center" | 0x03
 
|style="background:rgb(255,255,204);" align="center" | 0x03

Revision as of 22:58, 23 October 2008

KERNEL.BIN - Section 6: Weapon data format

This section contains the weapon data. Each weapon attribute is 44 bytes long.

Offset Length Description
0x00 1 byte Target type flags
  0x03 Long Range
0x23 Normal Range
0x01 1 byte Unknown (animation id?) [Always 0xFF]
0x02 1 byte Damage formula
0x03 1 byte Unknown [Always 0xFF]
0x04 1 byte Weapon Attack
0x05 1 byte Status Attack (index of status bit)
0x06 1 byte Materia growth rate
0x07 1 byte Critical hit chance (%)
0x08 1 byte Weapon hit chance (%)
0x09 3 bytes Weapon Model ID
0x0C 2 bytes Unknown (camera movement?) [Aways 0xFFFF]
0x0E 2 bytes Equip Mask
  0x0001 Equipable on Cloud
0x0002 Equipable on Barret
0x0004 Equipable on Tifa
0x0008 Equipable on Aeris
0x0010 Equipable on Red XIII
0x0020 Equipable on Yuffie
0x0040 Equipable on Cait Sith
0x0080 Equipable on Vincent
0x0100 Equipable on Cid
0x0200 Equipable on Young Cloud
0x0400 Equipable on Sephiroth
0x10 2 bytes Attack elements mask.
  0x0400 Cut
0x0800 Hit
0x1000 Punch
0x2000 Shoot
0x12 2 bytes Unknown [Always 0xFFFF]
0x14 4 bytes Increase Stat Type
  0xFF None
0x00 Strength
0x01 Vitality
0x02 Magic
0x03 Spirit
0x04 Dexterity
0x05 Luck
0x18 4 bytes Stat Amount Increased (Based on IT)
0x1C 8 bytes Materia Slots
  0x00 No Slot
0x02 Empty Left Linked Slot (ultima weapons slots)
0x03 Empty Right Linked Slot (ultima weapons slots)
0x05 Unlinked Slot
0x06 Left Linked Slot
0x07 Right Linked Slot
0x24 3 bytes Looks like normal, critical and miss attack sound.
0x27 1 byte Impact effect id
0x28 2 bytes Special attack flags. [Always 0xFFFF]
0x2A 1 byte Restriction Mask
  0xFF Appears in Item Menu. Does not appear in Battle Menu
(Not usable at all)
0xFE Appears in Battle Menu & Item Menu (Not usable at all)
0xFD Appears in Item Menu. Does not appear in Battle Menu
(Usable in Battle Menu)
0xFC Appears in Battle Menu & Item Menu (Usable in Battle
Menu)
0xFB Appears in Item Menu. Does not appear in Battle Menu
(Usable in Item Menu)
0xFA Appears in Battle Menu & Item Menu (Usable in Item
Menu)
0xF9 Appears in Item Menu. Does not appear in Battle Menu
(Usable in Item Menu & Battle Menu)
0xF8 Appears in Battle Menu & Item
Menu (Usable in Item Menu & Battle Menu)
0xF7 Appears in Item Menu. Does not appear in Battle Menu
(Usable in Battle Menu)
0xF6 Appears in Battle Menu & Item Menu (Usable in Battle
Menu)
0x2B 1 byte Unknown [Always 0xFF]