Trigger:
- Player2Attack
- Events
- Unit - A unit Is attacked
- Conditions
- (((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to True) and ((((Attacking unit) is A Hero) Equal to True) and ((((Attacked unit) is A Hero) Equal to True) and ((Owner of (Attacking unit)) Equal to Player 2 (Blue))))
- Actions
- Unit Group - Pick every unit in (Units within 950.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True)) and do (Actions)
- Loop - Actions
- Set P2SaldirilaninCreepler = (Picked unit)
- Set P2SaldiranHero = (Attacking unit)
- Unit - Order P2SaldirilaninCreepler to Attack P2SaldiranHero
- Countdown Timer - Start Player2TimerAttack as a One-shot timer that will expire in 1.70 seconds
- Trigger - Turn off (This trigger)
- Loop - Actions
- Unit Group - Pick every unit in (Units within 950.00 of (Position of (Attacked unit)) matching (((Matching unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True)) and do (Actions)
- Events
Trigger:
- Player2AttackStop
- Events
- Time - Player2TimerAttack expires
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in (Units within 950.00 of (Position of P2SaldiranHero) matching (((Matching unit) belongs to an enemy of (Owner of P2SaldiranHero)) Equal to True))) Greater than or equal to 1
- Then - Actions
- Unit Group - Pick every unit in (Units within 950.00 of (Position of P2SaldiranHero) matching ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of P2SaldiranHero)) Equal to True))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Skeleton Warrior (Devils Alt)
- (Unit-type of (Picked unit)) Equal to Skeleton Warrior Devils (Devils Alt)
- (Unit-type of (Picked unit)) Equal to Skeleton Mage (Devils Alt)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 1
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of SolAlt <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 2
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of ReapersAltBarracks <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 3
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Green Dragon Roost <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Skeletal Orc (Devils Ust)
- (Unit-type of (Picked unit)) Equal to Skeletal Orc Devils (Devils Ust)
- (Unit-type of (Picked unit)) Equal to Skeleton Archer (Devils Ust)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 1
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of SagUst <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 2
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of ReapersUstBarracks <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 3
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Green Dragon Roost <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Ghoul Devil (Devils Orta)
- (Unit-type of (Picked unit)) Equal to Ghoul (Devils Orta)
- (Unit-type of (Picked unit)) Equal to Deceiver (Devils Orta)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Green Dragon Roost <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Headhunter (Reapers Alt)
- (Unit-type of (Picked unit)) Equal to Fell Hound (Reapers Alt)
- (Unit-type of (Picked unit)) Equal to Killhound (Reapers Alt)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 1
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of SolAlt <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 2
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of DevilsSolBarracks <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 3
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Red Dragon Roost <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Hell Hound (Reapers Ust)
- (Unit-type of (Picked unit)) Equal to Red Hound (Reapers Ust)
- (Unit-type of (Picked unit)) Equal to Snap Dragon (Reapers Ust)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 1
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of SagUst <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 2
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of DevilsUstBarracks <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Custom value of (Picked unit)) Equal to 3
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Red Dragon Roost <gen>)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Picked unit)) Equal to Grunt (Reapers Orta)
- (Unit-type of (Picked unit)) Equal to Grunt Reaper (Reapers Orta)
- (Unit-type of (Picked unit)) Equal to Blue Shade (Reapers Orta)
- Conditions
- Or - Any (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Order (Picked unit) to Attack-Move To (Center of Red Dragon Roost <gen>)
- Trigger - Turn on Player2Attack <gen>
- Else - Actions
- Trigger - Turn on Player2Attack <gen>
- If - Conditions
- Trigger - Turn on Player2Attack <gen>
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units within 950.00 of (Position of P2SaldiranHero) matching ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of P2SaldiranHero)) Equal to True))) and do (Actions)
- Else - Actions
- Trigger - Turn on Player2Attack <gen>
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Hero 1 attacking to Hero 2 but why Hero 2 attacks the Hero 1 for a litte duration ? Who can solve the problem ? I'm worked on this trigger to 3 days i solved creeps attacks problem but this problem is begins.
if enemy hero attacks to me i don't want to my hero automatically attacks him