Changes
From Final Fantasy Inside
Created page with "== 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..."
== 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:
{| borderclass="0" cellpadding="3" cellspacing="1" style="background: rgb(0,0,0)" align="centerwikitable"!style="background:rgb(204,204,204)" | Bit!style="background:rgb(204,204,204)" | Effect on Target Selection!style="background:rgb(204,204,204)" | Explanation
|-
|-
|-
|-
|-
|-
|-
|-
|}
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.<br/>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
NOTE: Setting a target in enemy attack data does not control how the enemy selects targets. That is defined in their AI. Targets in enemy attack data only get used while they are being manipulated.
==Examples:==
Defend/Change: Has a target of 00h. This will only allow the caster to perform the command on itself.