And just to make things more complicated with another option
'>
Have you tried working with Special Behavior? There is behavior for Carnivores, Herbivores, and Omnivores. I heavily modified this and it is working nicely for me.
Here's some work by LoCashIf you are curious about my work on this I can dig it up and post it for you.
And another option:
since the call to fight is often DetermineCombatRound, you can change what happens in that function with setting a local var on the creature, X2_SPECIAL_COMBAT_AI_SCRIPT, which is the name of a script that you call in place of the rest of DetermineCombatRound. So with that special ai script you could tell the creature to keep fleeing rather than attack.
Modifié par henesua, 05 juin 2012 - 11:38 .