I'm poking at trying to make a version of the Command Animal power that is usable (and used) by NPCs. Unfortunately several chunks of the standard one are implemented in player-specific fashion that doesn't have a generic equivalent.
Right now, the power will pacify (all, not just one, but I think I can solve that) animals within the spell's AoE. So far so good, but I'd like them to help out the caster, as they would the player.
This is where I get stuck. I can't seem to find a combination of faction relations and AI settings that will:
1. By default make the animal nonaggressive against everyone
2. Make them attack actors if, and only if, they're in combat with the casting actor
Right now I'm looking at adding a cloak spell to the casting actor to find everybody who is hostile to them, and stuffing them into a faction set as an enemy to the pacified faction, but that's a very kludgey thing to try. Anyone have some experience in the area and/or pointers?