So, I wanted to follow up on this since I don't like leaving things half finished. Plus, I've been looking into AI a bit after I realized how much space in RAM it takes up. Anyway, based on the code, here's the list of target parameters:
00 Target Bartz
01 Target Lenna
02 Target Galuf
03 Target Faris
04 Target Krile
05 Target Monster 1
06 Target Monster 2
07 Target Monster 3
08 Target Monster 4
09 Target Monster 5
0A Target Monster 6
0B Target Monster 7
0C Target Monster 8
0D Target Self (Effectively, see below)
0E All Non-Self Monsters
0F All Monsters
10 Single Non-Self Monster
11 Single Monster
12 All Front Row Players
13 All Back Row Players
14 Single Front Row Player
15 Single Back Row Player
16 All Female Players
17 All Male Players
18 Single Female Player
19 Single Male Player
1A All Available Players (see below)
1B Single Availble Player
1C All Monsters With Reflect (not really useful)
1D Single Monster With Reflect
1E All Monsters With Critical (aka Near Death)
1F Single Monster With Critical
20 All Monsters Less Than Half HP
21 Single Monster Less Than Half HP
22 Single Player Without Reflect
23 All Players In Team (see below)
24 Single Player In Team
25 All Monsters Dead Or 0 HP
26 Single Monster Dead Or 0 HP
27 ??? (see below)
28 Target Bartz If Jumping (see below)
29 Target Lenna If Jumping
2A Target Faris If Jumping
2B Target Galuf If Jumping
2C Target Krile If Jumping
2D Target Previous Attacker
2E All Players Where Flag Set (see below)
2F Target Bartz if Dead (see below)
30 Target Lenna if Dead
31 Target Faris if Dead
32 Target Galuf if Dead
Notes:
Unless explicitly targeted, single targets are randomly chosen from the list of available targets.
0D: This isn't explicitly targeting self unless a flag (7C56) is set to zero, but appears to serve that function. I suspect the additional code is for counters that trigger on self, but I have not verified this.
1A: By available here - players that are Present and not Petrified, Dead, Erased, Hidden, or Jumping. These are checked for most of these targeting functions.
23/24: I'm not sure offhand what the difference between this and 1A/1B are. This checks the "In Team" flag (#40) in the player info byte (2000,X) similar to Gender/Row.
27: This parses more of the AI code, and it's a can of worms I'm not prepared to look into yet. When I've unraveled more of the AI parsing I'll come back to this.
28-2C: These target a jumping player, if they are not already affected by Interceptor Rocket. The way IR works is that it tells the affected target to perform action #50, overwriting whatever it was doing before. This function checks if the player is performing command action #50 already and skips them if they are. This prevents IR from being used on a target twice.
2E: This checks $7C87 and if the player's bitflag (80 = B/L/F/G/K/-/-/-) is set, and adds them to the target list if it is. I don't know what sets this flag, but it's something in C1 so it's likely to be animation based.
2F-32: There is no function to explicitly target a dead Krile. Oops.