Anonymous

Changes

From Final Fantasy Inside

FF7/Weapon data

1,541 bytes removed, 02:42, 9 December 2020
m
KERNEL.BIN - Section 6: Weapon data format: Added switch to usage restriction mask
=== KERNEL.BIN - Section 6: Weapon data format ===
This section contains the weapon data. Each weapon attribute is 44 bytes long.
{| border="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="center"
|style="background:rgb(255,255,255);" align="center" | 0x00
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Weapon Range[[FF7/Battle/Targeting Data|Target Flags]]
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="2" |  |style="background:rgb(255,255,255); width: 50px;" | 0x03 |style="background:rgb(255,255,255);" | Long Range|-|style="background:rgb(255,255,255);" | 0x23|style="background:rgb(255,255,255);" | Normal Range|-|style="background:rgb(255,255,204);" align="center" | 0x01|style="background:rgb(255,255,204255);" | 1 byte|style="background:rgb(255,255,204255);" colspan="2" | Unknown [[FF7/Battle/Attack Effect Id List|Attack Effect Id]]. Always 0xFF]. Isn't used for weapon in game.
|-
|style="background:rgb(255,255,255);" align="center" | 0x02
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Special Options (Attack Modifiers)[[FF7/Battle/Damage Calculation|Damage Calculation]]
|-
|style="background:rgb(204255,204255,255);" align="center" colspan="2" rowspan="10" |  0x03|style="background:rgb(255,255,255);" | 0x11 1 byte|style="background:rgb(255,255,255);" colspan="2" | NormalNot used. Always 0xFF.
|-
|style="background:rgb(255,255,255);" align="center" | 0xA00x04|style="background:rgb(255,255,255);" | 1 + Number of Status Effects Tifa has out of followingbyte|style="background:Near-deathrgb(255, Poison255, Sadness, Silence, Slow, Darkness + 255);" colspan="2<br /> * Number of Status Effects Tifa has out of following:<br />Death-sentence, Slow-numb" | Weapon attack strength for damage formula.
|-
|style="background:rgb(255,255,255);" align="center" | 0xA10x05|style="background:rgb(255,255,255);" | Power up when near death1 byte|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Status Effects|Status Attack]]. This is index of status bit.
|-
|style="background:rgb(255,255,255);" align="center" | 0xA20x06|style="background:rgb(255,255,255);" | 1 + Number of Allies in Death Statusbyte|style="background:rgb(255,255,255);" colspan="2" | Materia growth rate (0, 1, 2, 3 for None, Normal, Double, Triple. All other values are "Normal" Growth)
|-
|style="background:rgb(255,255,255);" align="center" | 0xA30x07|style="background:rgb(255,255,255);" | 1 byte|style="background:rgb(Target's Level / 16) When used against allies255, the weapon<br />will act like a physical hit255, but will cause not damage (not<br />even a Miss or a 0255). The Weapon has no Morph modifier;<br />it does the same damage with or without Morph.<br />" colspan="2" | Critical hit chance (Conformer%)
|-
|style="background:rgb(255,255,255);" align="center" | 0x08|style="background:rgb(255,255,255);" | 0xA41 byte|style="background:rgb(255,255,255);" colspan="2" | Weapon hit chance (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);" | 1 byte|style="background:rgb(255,255,204);" colspan="2" | Unknown [Always 0xFF]|-|style="background:rgb(255,255,255);" align="center" | 0x040x09
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Weapon Attackmodel
|-
|style="background:rgb(255204,204,255,204);" align="center" colspan="2" rowspan="2" | 0x05&nbsp;|style="background:rgb(255,255,204255);" | 1 byteUpper nybble|style="background:rgb(255,255,204255);" colspan="2" | Unknown [Always 0xFF]Attack animation modifier (For Barret and Vincent only)
|-
|style="background:rgb(255,255,255);" align="center" | 0x06|style="background:rgb(255,255,255);" | 1 byteLower nybble|style="background:rgb(255,255,255);" colspan="2" | Materia growth rateWeapon model index
|-
|style="background:rgb(255,255,204);" align="center" | 0x070x0A
|style="background:rgb(255,255,204);" | 1 byte
|style="background:rgb(255,255,204);" colspan="2" | UnknownAlignment. Always 0xFF.
|-
|style="background:rgb(255,255,255);" align="center" | 0x080x0B
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Weapon attack percentage|-|style="background:rgbMask for access high sound id (255,255,2550x100+);" align="center" | 0x09|style="background:rgb(255,255,255);" | 3 bytes|style="background:rgb(255,255,255);" colspan="2" | Weapon Model ID .
|-
|style="background:rgb(255,255,255);" align="center" | 0x0C
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,255);" colspan="2" | Unknown [Aways [FF7/Battle/Camera Movement Id List|Camera Movement Id]]. Used for both single and multiple targeted attacks with this weapon. Always 0xFFFF] .
|-
|style="background:rgb(255,255,255);" align="center" | 0x0E
|style="background:rgb(255,255,255);" align="center" | 0x10
|style="background:rgb(255,255,255);" | 2 bytes
|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Elemental_Data| Attack Type|-|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="4" | &nbsp;|style="background:rgb(255,255,255);" | 0x0004|style="background:rgb(255,255,255);" | Cut|-|style="background:rgb(255,255,255);" | 0x0008|style="background:rgb(255,255,255);" | Hit|-|style="background:rgb(255,255,255);" | 0x0010|style="background:rgb(255,255,255);" | Punch|-|style="background:rgb(255,255,255);" | 0x0020|style="background:rgb(255,255,255);" | HitElement]]
|-
|style="background:rgb(255,255,204);" align="center" | 0x12
|style="background:rgb(255,255,255);" align="center" | 0x18
|style="background:rgb(255,255,255);" | 4 bytes
|style="background:rgb(255,255,255);" colspan="2" | Stat Amount Increased (Based on ITabove)
|-
|style="background:rgb(255,255,255);" align="center" | 0x1C
|style="background:rgb(255,255,255);" colspan="2" | Materia Slots
|-
|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="47" | &nbsp;
|style="background:rgb(255,255,255);" | 0x00
|style="background:rgb(255,255,255);" | No Slot
|-
|style="background:rgb(255,255,255);" | 0x01
|style="background:rgb(255,255,255);" | Empty Unlinked Slot (no growth-equips)
|-
|style="background:rgb(255,255,255);" | 0x02
|style="background:rgb(255,255,255);" | Empty Left Linked Slot (no growth-equips)
|-
|style="background:rgb(255,255,255);" | 0x03
|style="background:rgb(255,255,255);" | Empty Right Linked Slot (no growth-equips)
|-
|style="background:rgb(255,255,255);" | 0x05
|style="background:rgb(255,255,255);" | Right Linked Slot
|-
|style="background:rgb(255,255,204255);" align="center" | 0x24|style="background:rgb(255,255,204255);" | 1 bytes|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Sound Effect Id List|Sound Effect Id]] for normal hit.|-|style="background:rgb(255,255,255);" align="center" | 0x25|style="background:rgb(255,255,255);" | 1 bytes|style="background:rgb(255,255,255);" colspan="2" | [[FF7/Battle/Sound Effect Id List|Sound Effect Id]] for critical hit.|-|style="background:rgb(255,255,255);" align="center" | 0x26| 3 style="background:rgb(255,255,255);" | 1 bytes|style="background:rgb(255,255,204255);" colspan="2" | Unknown[[FF7/Battle/Sound Effect Id List|Sound Effect Id]] for missed attack.
|-
|style="background:rgb(255,255,255);" align="center" | 0x27
|style="background:rgb(255,255,255);" | 1 byte
|style="background:rgb(255,255,255);" colspan="2" | Attack texture graphic[[FF7/Battle/Impact Effect Id List|Impact Effect Id]]
|-
|style="background:rgb(255,255,204255);" align="center" | 0x28|style="background:rgb(255,255,204255);" | 2 bytes|style="background:rgb(255,255,204255);" colspan="2" | [[FF7/Battle/Special Attack Flags|Special Attack Flags]]. Always 0xFFFF].
|-
|style="background:rgb(255,255,255);" align="center" | 0x2A
|style="background:rgb(255,255,255);" | 1 byte2 bytes|style="background:rgb(255,255,255);" colspan="2" | Restriction Mask|-|style="background:rgb(204,204,255)" align="center" colspan="2" rowspan="10" | &nbsp;|style="background:rgb(255,255,255);" | 0xFF|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in Battle Menu<br />(Not usable at all)|-|style="background:rgb(255,255,255);" | 0xFE|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Not usable at all)|-|style="background:rgb(255,255,255);" | 0xFD|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear in Battle Menu <br />(Usable in Battle MenuIf the following bits are 0)
|-
|style="background:rgb(204,204,255);" colspan="2" rowspan="5" | &nbsp;|style="background:rgb(255,255,255);" | 0xFC01h|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable in Battle<br />Menu) Can be sold
|-
|style="background:rgb(255,255,255);" | 0xFB02h|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear Can be used in Battle Menu <br />(Usable in Item Menu)
|-
|style="background:rgb(255,255,255);" | 0xFA04h|style="background:rgb(255,255,255);" | Appears Can be used in Menu Out of Battle Menu & Item Menu (Usable in Item <br />Menu)
|-
|style="background:rgb(255,255,255);" | 0xF908h|style="background:rgb(255,255,255);" | Appears in Item Menu. Does not appear Can be thrown in Battle Menu <br />(Usable in Item Menu & Battle Menu)
|-
|style="background:rgb(255,255,255);" | 0xF8|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item <br />Menu (Usable 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 Battle Menu <br />(Usable in Battle Menu) |-|style="background:rgb(255,255,255);" | 0xF6|style="background:rgb(255,255,255);" | Appears in Battle Menu & Item Menu (Usable in Battle <br />Menu) |-|style="background:rgb(255,255,204);" align="center" | 0x2B|style="background:rgb(255,255,204);" | 1 byte|style="background:rgb(255,255,204);" colspan="2" | Unknown [Always 0xFF]Other values have no effect
|}
6
edits