Well, the targetting system is 'smart' enough to interpret all commands relative to the battle object. So, "Heal a friendly with less than 128/256 HP" won't start buffing Cloud. There are some issues, though. One is that Sephiroth's AI locks his HP and MP, and the other is that telling an enemy 'use <Command One> - <Cut>' won't work because they can't use the player's bank of basic ('yellow') commands. You'd have to create a similar enemy attack instead.