- Joined
- Mar 24, 2013
- Messages
- 1,105
So the idea of this trigger is to give the unit additional damage depending on the number of heroes within an area, however during my trials it either adds it once and never removes it OR it adds and removes it so fast that I never see any "+dmg" Any help would be terrific!
-
Extra Damage Owner Learn
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Extra Dmg
-
Actions
- Set ExtraDmg_Owner = (Learning Hero)
-
Events
-
Extra Damage
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
- Set TempPoint = (Position of ExtraDmg_Owner)
- Set TempGroup = (Units within 350.00 of TempPoint)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of ExtraDmg_Owner)) Equal to True
-
Then - Actions
- Unit - Add Item Damage Bonus +5 to ExtraDmg_Owner
- Unit Group - Add (Picked unit) to ExtraDmg_UnitGroup
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in ExtraDmg_UnitGroup and do (Actions)
-
Loop - Actions
- Set TempPoint2 = (Position of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between TempPoint and TempPoint2) Greater than or equal to 351.00
-
Then - Actions
- Unit - Remove Item Damage Bonus +5 from ExtraDmg_Owner
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: set udg_TempGroup = null
-
Events