I've been reading a variety of macro compilations for ideas and didn't see this, so I thought I would write one up. I have tested it a fair bit, but not exhaustively.
This macro targets what you should be attacking across a variety of situations:Code:/merror off /target <lastattacker> /targetenemy /target <battletarget> /target <lastenemy> /assist <focus> /ta <attack5> /ta <attack4> /ta <attack3> /ta <attack2> /ta <attack1> /micon "attack1" enemysign
- Numbered attack targets 1–5
- Your focus target's target (assumes you set your tank as your focus target)
- The enemy you targeted last
- The nearest enemy that is engaged in combat
- The nearest enemy
- Finally, whatever attacked you last.
You might prioritize those last ones differently. The actual commands are in reverse order, so that the last one to apply takes effect. If multiple lines apply, you will see a quick succession of target changes as the macro cycles through them.
I have this macro bound to the ` (backquote) key, right above Tab.
If you use your focus target for something other than your tank, you could change <focus> to <2> (or whatever position your tank usually occupies). If you are on bind duty, you'd want to write a separate macro along similar lines for that. I haven't had to do any binding yet, so I haven't written that myself.
You could also add lines for your pet and chocobo companion, although I think you'd be better off having a separate macro for assisting your pets.