Anonymous

Changes

From Final Fantasy Inside

FF7/Battle/Damage Calculation

7 bytes removed, 23:03, 5 October 2011
m
A little bit of clarification sometimes is more vague
In Attacks, Items, and Weapons there exists a single byte that tells the Battle Engine how to calculate damage based on an attack's set Power and the characters stats. Physical and Magical will rely on the caster's "Attack" and "Magic Attack" stat respectively to calculate base damage. 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. After modification it is multiplied by Actual calculation includes a random variance ([2243841..2554096]/256 or something similar4096) and reduced by , a certain amount reduction based on a target's "Defense" or "Magic Defense" stats, and other status-related modifications depending on the type of damage. These will also trigger Physical and Magical Counter Attacks respectively.
For more details, these can be considered Base Damage Modifiers as described in Terence Fergusson's [http://www.gamefaqs.com/console/psx/file/197341/22395 Battle Mechanics FAQ].<br/>
Anonymous user