- Joined
- Mar 17, 2012
- Messages
- 582
Hi guys! Here's a simple but annoying question to you. I have a trigger that periodically creates a unit on my position ONLY if there's not the same unit in 10 AoE. BUT it keeps creating those units ignoring my conditions
Here's my trigger. Maybe I'm blind or inattentive... 

-
Trail of Life loop
-
Events
-
Time - Every 0.33 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Trail_of_Life_Owner[(Integer A)] has buff Trail of Life ) Equal to True
-
-
Then - Actions
-
Set Trail_of_Life_Point[(Integer A)] = (Position of Trail_of_Life_Owner[(Integer A)])
-
Set Trail_of_Life_Cleanup_Group[(Integer A)] = (Units within 100.00 of Trail_of_Life_Point[(Integer A)] matching (((Unit-type of (Matching unit)) Equal to Trail of Life) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in Trail_of_Life_Cleanup_Group[(Integer A)] and do (Actions)
-
Loop - Actions
-
Set Trail_of_Life_Cleanup_Check[(Integer A)] = (Trail_of_Life_Cleanup_Check[(Integer A)] + 1)
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Trail_of_Life_Cleanup_Check[(Integer A)] Greater than 0
-
-
Then - Actions
-
Do nothing
-
-
Else - Actions
-
Unit - Create 1 Trail of Life for (Owner of Trail_of_Life_Owner[(Integer A)]) at Trail_of_Life_Point[(Integer A)] facing Default building facing degrees
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Set Trail_of_Life_Cleanup_Check[(Integer A)] = 0
-
-
-
Custom script: call DestroyGroup(udg_Trail_of_Life_Cleanup_Group[GetForLoopIndexA()])
-
Custom script: call RemoveLocation(udg_Trail_of_Life_Point[GetForLoopIndexA()])
-
-
Else - Actions
-
-
-
-
-