V-Gears 0
Free Final Fantasy VII engine.
KernelDataInstaller::AttackData Struct Reference

Data for each attack. More...

Collaboration diagram for KernelDataInstaller::AttackData:

Public Attributes

u8 accuracy
 Probability of the attack to land. More...
 
u8 impact_effect
 Impact effect. More...
 
u8 hurt_anim
 Index of the animation played by the target when hit. More...
 
u8 unknown
 Unknown data. More...
 
u16 mp
 MP cost. More...
 
u16 sound
 Impact sound. More...
 
u16 camera_single
 Camera movement ID for single target. More...
 
u16 camera_multiple
 Camera movement ID for multiple target. More...
 
u8 target_raw
 Targeting mode. More...
 
u8 effect
 Atack effect ID. More...
 
u8 damage_raw
 Damage formula. More...
 
u8 power
 The attack power. More...
 
u8 condition_raw
 The restore type. More...
 
u8 status_change_raw
 Information about status change mode and chance. More...
 
u8 additional_effects_raw
 Special flags. More...
 
u8 additional_effects_mod_raw
 Special flags. More...
 
u32 status_raw
 Information about what status can be inflicted or cured. More...
 
u16 element_raw
 Information about the item elements. More...
 
u16 special_raw
 Special flags. More...
 
int id
 Attack ID. More...
 
std::string name
 Attack name. More...
 
std::string description
 Attack description. More...
 
Target target
 Target selection mode. More...
 
u8 damage_formula
 The damage formula. More...
 
u8 damage_modifier
 The damage modifier. More...
 
RESTORE_TYPE restore_type
 What the attack restores when used. More...
 
StatusEffect status
 Status effects. More...
 
std::vector< int > elements
 Elements of the attack. More...
 

Detailed Description

Data for each attack.

As found in KERNEL.BIN, file 1, in order, up to camera_multiple. Members after special_raw are not found literally in KERNEL.BIN, but are derived from other members.

Member Data Documentation

◆ accuracy

u8 KernelDataInstaller::AttackData::accuracy

Probability of the attack to land.

1 byte.

◆ additional_effects_mod_raw

u8 KernelDataInstaller::AttackData::additional_effects_mod_raw

Special flags.

1 byte.

Todo:
Document and retrieve with info from https://wiki.ffrtt.ru/index.php?title=FF7/Item_data

◆ additional_effects_raw

u8 KernelDataInstaller::AttackData::additional_effects_raw

Special flags.

1 byte.

Todo:
Document and retrieve with info from https://wiki.ffrtt.ru/index.php?title=FF7/Battle/Attack_Special_Effects

◆ camera_multiple

u16 KernelDataInstaller::AttackData::camera_multiple

Camera movement ID for multiple target.

2 bytes.

Determines the camera movement when the command is executed over multiple targets.

◆ camera_single

u16 KernelDataInstaller::AttackData::camera_single

Camera movement ID for single target.

2 bytes.

Determines the camera movement when the command is executed over a single target.

◆ condition_raw

u8 KernelDataInstaller::AttackData::condition_raw

The restore type.

See {

See also
restore_type} and {
RESTORE_TYPE} for more information.

◆ damage_formula

u8 KernelDataInstaller::AttackData::damage_formula

The damage formula.

It's the upper nybble in {

See also
damage_raw}.

◆ damage_modifier

u8 KernelDataInstaller::AttackData::damage_modifier

The damage modifier.

It's the lower nybble in {

See also
damage_raw}.

◆ damage_raw

u8 KernelDataInstaller::AttackData::damage_raw

Damage formula.

1 byte.

This byte is divided into two nybbles (four bits). Upper nybble determines what considerations are made in calculating damage such as physical/magical, allowing criticals, how to calculate accuracy, etc. There are also three sets of known formulae that are paired with the upper nybble values. These are selected in the Lower Nybble and determine how to calculate pre-defense damage

◆ description

std::string KernelDataInstaller::AttackData::description

Attack description.

Not found in the same file as the rest of the data, but on file 10.

◆ effect

u8 KernelDataInstaller::AttackData::effect

Atack effect ID.

1 byte.

Used for animation in battle.

◆ element_raw

u16 KernelDataInstaller::AttackData::element_raw

Information about the item elements.

2 bytes.

◆ elements

std::vector<int> KernelDataInstaller::AttackData::elements

Elements of the attack.

Derived from {

See also
element_raw}.

◆ hurt_anim

u8 KernelDataInstaller::AttackData::hurt_anim

Index of the animation played by the target when hit.

1 byte.

◆ id

int KernelDataInstaller::AttackData::id

Attack ID.

Not actually in the item file data, it's the order at which it appears.

◆ impact_effect

u8 KernelDataInstaller::AttackData::impact_effect

Impact effect.

1 byte.

The sprite shown when the attack hits.

◆ mp

u16 KernelDataInstaller::AttackData::mp

MP cost.

2 bytes.

Determines the camera movement when the command is executed over a single target.

◆ name

std::string KernelDataInstaller::AttackData::name

Attack name.

Not found in the same file as the rest of the data, but on file 18.

◆ power

u8 KernelDataInstaller::AttackData::power

The attack power.

1 byte.

Used for damage/healing calculation.

◆ restore_type

RESTORE_TYPE KernelDataInstaller::AttackData::restore_type

What the attack restores when used.

Same as {

See also
condition_raw}, except for the wrong cases.

◆ sound

u16 KernelDataInstaller::AttackData::sound

Impact sound.

2 bytes.

Determines the camera movement when the command is executed over multiple targets.

◆ special_raw

u16 KernelDataInstaller::AttackData::special_raw

Special flags.

2 bytes.

Todo:
document and parse with info from https://wiki.ffrtt.ru/index.php?title=FF7/Battle/Special_Attack_Flags

◆ status

StatusEffect KernelDataInstaller::AttackData::status

Status effects.

Derived from {

See also
status_change_raw} and {
status_raw}.

◆ status_change_raw

u8 KernelDataInstaller::AttackData::status_change_raw

Information about status change mode and chance.

1 bytes.

◆ status_raw

u32 KernelDataInstaller::AttackData::status_raw

Information about what status can be inflicted or cured.

4 bytes.

The first six bits are the chance of inflicting/curing (out of 63). If the seventh bit is set, the status is cured instead of inflicted. If the eighth bit is set, then the status is toggled (cured if present, inflicted if not present).

◆ target

Target KernelDataInstaller::AttackData::target

Target selection mode.

Derived from {

See also
target_raw}.

◆ target_raw

u8 KernelDataInstaller::AttackData::target_raw

Targeting mode.

1 byte.

See {

See also
target} and {
TargetModes} for more information.

◆ unknown

u8 KernelDataInstaller::AttackData::unknown

Unknown data.

1 bytes.


The documentation for this struct was generated from the following file: