Well, I made this trigger is for an aura that deals damage to nearby enemies based on how long they are under the effect of the buff, increasing the damage every second and reseting the counter if they get out of the aura range. ie at level 1 enemies would take 20 damage in the 1º second, 40 damage at the 2º second, 60 damage at the 3º second...
Anyway, the problem is that the trigger is not working. Can you guys help me finding the problem? heres the trigger:
Anyway, the problem is that the trigger is not working. Can you guys help me finding the problem? heres the trigger:
-
Contamination
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set Skill_Group1 = (Units in (Playable map area) matching ((Level of Contamination for (Matching unit)) Greater than 0))
-
Unit Group - Pick every unit in Skill_Group1 and do (Actions)
-
Loop - Actions
- Set Skill_Caster = (Picked unit)
- Set Skill_Integer = (Level of Contamination for (Picked unit))
- Set Skill_Real = (Real(Skill_Integer))
- Set Skill_Group2 = (Units in (Playable map area))
-
Unit Group - Pick every unit in Skill_Group2 and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Contamination ) Equal to True
-
Then - Actions
- Hashtable - Save ((Load 1 of (Key (Picked unit)) from Hash1) + 1.00) as 1 of (Key (Picked unit)) in Hash1
- Hashtable - Save (10.00 + (10.00 x Skill_Real)) as 2 of (Key (Picked unit)) in Hash1
- Set Skill_Damage = ((Load 1 of (Key (Picked unit)) from Hash1) x (Load 2 of (Key (Picked unit)) from Hash1))
- Unit - Cause Skill_Caster to damage (Picked unit), dealing Skill_Damage damage of attack type Spells and damage type Magic
-
Else - Actions
- Hashtable - Save 0 as 1 of (Key (Picked unit)) in Hash1
- Hashtable - Save 0 as 2 of (Key (Picked unit)) in Hash1
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Skill_Group1)
- Custom script: call DestroyGroup(udg_Skill_Group2)
-
Events