- Joined
- Jun 2, 2009
- Messages
- 1,138
Hello everyone. I think finally i have solved my aggro issues by creating new system. But it seems there are flaws in this trigger.
-
AggroTest
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
- (DamageEventTarget is A Hero) Equal to True
- (DamageEventSource is A Hero) Equal to True
-
Actions
- Set DamagePoint = (Position of DamageEventTarget)
- Set DamageGroup = (Units within 1000.00 of DamagePoint)
-
Unit Group - Pick every unit in DamageGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is in CreepsGroup) Equal to True
- ((Picked unit) belongs to an enemy of (Owner of DamageEventSource)) Equal to True
-
Then - Actions
- Unit - Order (Picked unit) to Attack DamageEventSource
- Trigger - Run AggroEndsYeter <gen> (checking conditions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_DamagePoint)
-
Events
-
AggroEndsYeter
- Events
- Conditions
-
Actions
- Wait 2.00 seconds
-
Unit Group - Pick every unit in DamageGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is in CreepsGroup) Equal to True
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Picked unit)) Equal to ClanDevilPlayer
-
Then - Actions
- Unit - Order (Picked unit) to Attack-Move To DevilOCCreep[(Level of creep seyi devil for (Picked unit))]
- Cinematic - Ping minimap for (All players) at DevilOCCreep[(Level of creep seyi devil for (Picked unit))] for 1.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Picked unit)) Equal to ClanReaperPlayer
-
Then - Actions
- Unit - Order (Picked unit) to Attack-Move To ReaperOCCreep[(Level of creep seyi reaper for (Picked unit))]
- Cinematic - Ping minimap for (All players) at ReaperOCCreep[(Level of creep seyi reaper for (Picked unit))] for 1.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (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)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_DamageGroup)