You can set up a pretty simple trigger to cause any attack orders against allied units to simply be disregarded:
Event: Unit - Any Unit is issued an order to Attack
Condition: (Player (Triggering player) is giving player (Owner of (Target unit for (Triggering order))) Non-aggression) == true
(read like this: "If the player issuing the order is not hostile towards the owner of the order's target")
Action: Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
I don't see a simple way to make this kind of thing cover all hostile abilities, though. For example, I see no reason that Snipe wouldn't still work with this trigger.
I'm having the same problem. It's really frustrating. The campaign elements also stop appearing in the data editor. I can't think of what could possibly cause them to disappear, other than a really nasty bug.
Edit: No sooner do I post than I find a way to fix it. Go to dependencies, and click the tiny little arrow button to reorder them. It looks like this causes them to be reloaded. It might happen again, but if it can be fixed that easily every time it's a relatively minor annoyance.
0
@ST4RKiLL3R: Go
You can set up a pretty simple trigger to cause any attack orders against allied units to simply be disregarded:
Event: Unit - Any Unit is issued an order to Attack
Condition: (Player (Triggering player) is giving player (Owner of (Target unit for (Triggering order))) Non-aggression) == true
(read like this: "If the player issuing the order is not hostile towards the owner of the order's target")
Action: Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
I don't see a simple way to make this kind of thing cover all hostile abilities, though. For example, I see no reason that Snipe wouldn't still work with this trigger.
0
@admo: Go
I was just able to do it with one action, like so:
Unit - Order (Triggering unit) to ( Stop) (Replace Existing Orders)
0
I'm having the same problem. It's really frustrating. The campaign elements also stop appearing in the data editor. I can't think of what could possibly cause them to disappear, other than a really nasty bug.
Edit: No sooner do I post than I find a way to fix it. Go to dependencies, and click the tiny little arrow button to reorder them. It looks like this causes them to be reloaded. It might happen again, but if it can be fixed that easily every time it's a relatively minor annoyance.