erm you could just use trigger - ability - turn autocast on?
If you want a trigger to be executed when some1 is using an auto-cast ability like orb spells (poison/cold arrows) You should make 3 triggers
1st : enable the "2nd trigger" when a unit is issued a command to turn on auto-casting of an ability(there are special orders for every auto-cast abilities )
2nd trigger: when a unit attacks,check if it is the unit that you turned the auto-cast on
3rd trigger : when the unit is issued an order to turn off the auto-cast of an ability disable the "2nd trigger"
- Here ya go
- Events
- Unit - A unit is issued an order with no target
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Issued Order) equal to (Order(slowon))
- (Issued Order) equal to (Order(slowoff))
- Actions
- If (All Conditions are True)then do(Then Actions) else do (Else Actions)
- If - Conditions
- (Issued Order) equal to (Order(slowon))
- Then - Actions
- Unit Group - Add (Ordered Unit) to AutoCastGroup
- Else - Actions
- Unit Group - Remove (Ordered Unit) to AutoCastGroup
I changed my idea a lil bit
- w00t
- Events
- Unit - A unit is issued an order targeting an object
- Conditions
- ((Ordered Unit) is in AutoCastGroup) equal to True
- (Issued Order) equal to(Order(attack))
- ((Target unit of issued order) belongs to an enemy of (Owner of (Ordered Unit))) equal to True
- Actions
- Unit - Order (Ordered Unit) to Human Sorceress - Slow (Target unit of issued order)
In these triggers I'm using the "slowon" "slowoff" "slow" orders,the thing is that you have to set your spell to have these orders in object editor,I think you know how to do this ^^.Hope this helps
So,is it working?
What ability, exactly? An 'arrow' type ability (autocast enhances attack), or a buff ability?
If it's an arrow ability, then you need to use the Unit is Attacked (or preferably damaged, if you feel like setting up damage detect) event. You also need to check to make sure that they have enough mana to trigger it.
If it's an arrow ability, then you need to use the Unit is Attacked (or preferably damaged, if you feel like setting up damage detect) event. You also need to check to make sure that they have enough mana to trigger it.
- Muscle Attack Auto Cast Active
- Events
- Conditions
- MuscleAttackAutoCast[(Player number of (Owner of (Damage source)))] Equal to True
Boolean Comparison