I am trying to make a trigger where if you use the attack command it will stop the attack before the unit takes damage.
I haven't used the editor in a very long time and I had it working at one point but I've lost almost all knowledge on triggers, conditions..etc.
So I start the trigger out with
Event - Ghost is issued an order to Attack
Conditions-
Actions - Order Ghost to Stop (Replace Existing Orders)
I just can't remember how to make a condition where if the target is allied or a targeted unit is a specific unit then do actions? Sorry I am explaining this the best I can lol.
There might be something like "ability effect target" which would refer to the unit clicked on. You would use "owner of unit" to get the player. Then you could probably use a player group to see if the owner of the unit is in the, allies of player (triggering player), player group.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I am trying to make a trigger where if you use the attack command it will stop the attack before the unit takes damage.
I haven't used the editor in a very long time and I had it working at one point but I've lost almost all knowledge on triggers, conditions..etc.
So I start the trigger out with
Event - Ghost is issued an order to Attack
Conditions-
Actions - Order Ghost to Stop (Replace Existing Orders)
I just can't remember how to make a condition where if the target is allied or a targeted unit is a specific unit then do actions? Sorry I am explaining this the best I can lol.
There might be something like "ability effect target" which would refer to the unit clicked on. You would use "owner of unit" to get the player. Then you could probably use a player group to see if the owner of the unit is in the, allies of player (triggering player), player group.