FF7/Battle/Targeting Data

From Final Fantasy Inside
< FF7‎ | Battle
Revision as of 19:11, 6 November 2008 by my_wiki>NFITC1 (New Page to explain some of FF7's Targeting System.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Targeting Data

Before targeting is explained in full, some information of rows must be understood. There are two or three rows in any battle. Most normal battles have two rows, allies and enemies. Pincer Attacks and Side Attacks have three rows. Two enemy rows for pincer attacks and one for side attacks. Furthermore, under most conditions, a "viable target" is a battle participant (enemy or ally) that is not inflicted with "Death".

Targeting is set by a single byte with eight different effects for each bit that is set:

Bit Effect on Target Selection Explanation
01h Enable Selection Cursor will move to the battle field and a target can be selected with the constraints in the following.
02h Start Cursor on Enemy Row Cursor will start on the first enemy row.
04h Multiple Targets by Default Cursor will select all targets in a given row.
08h Toggle Multiple/Single Targets Caster can switch cursor between multiple targets or single targets.
10h One Row Only Cursor will only target allies or enemies as defined in 02h and cannot be moved from the row.
20h "Short Range" (Physical attacks only?) If either the target or the caster is not in the front of their row, the target will take half damage.
40h All Rows Cursor will select viable targets
80h Random Target among Selected When multiple targets are selected, one will be selected at random to be the receiving target. Cursor will cycle among all viable targets.

Targets are set in three places. On Commands, on Attacks, and on Weapons. The Command's target (if not NULL [FFh]) trumps any target information provided by the Attack or the Weapon. As such, it is analyzed first. Any additional settings are added through the weapon or attack.
This is further trumped by "Confuse" and "Berserk" which will set the target data to C0h and 97h respectively. Confuse will pick any available command to perform and Berserk will just attack with the equipped weapon.

Although the cursor can move to an ally with the "Death" status, if no targets selected to receive the attack are viable the attack will "re-target". A dead enemy cannot be targeted, dead allies can. This is true for monsters and PCs. A "re-target" takes the original targeting data and multiple targets and random is added.

Eg1: Fire (Target of 0Fh) is selected to be performed on an enemy. That action is put into the queue, but the enemy dies before Fire is performed. Fire's targeting data (0Fh) is then and'd with 87h.

New Target = (0Fh And 87h) = 87h ' random enemy

Eg2: Cure (Target of 0Dh) is queued to heal a suffering ally. Before Cure is cast, the ally dies. Cure is re-targeted:

New Target = (0Dh And 87h) = 85h ' random ally


Examples:

Shield: This has a target of 00h. This will only allow the caster to perform the spell on itself. Cursor can not be moved because 01h is not set.

Summons: Target of 17h. A PC cannot perform a summon that attacks on his/her own character or row. It will only target all of any enemy row, but only one row.

Some of Aeris's and Cait Sith's Limit Breaks: Set at 15h. Same as above, but only the caster's row.

Most weapons: 23h. This makes some of the weapons into a short range attack. If the "Long Range" Materia is equipped, bit 20h of this targeting data is forced to 0.

Comet2/Berserk: 97h. This will target one target of the enemy row at random.

Roulette: C7h. Will choose one target at random from among all battle participants not inflicted with "Death" status.