- Joined
- Dec 29, 2008
- Messages
- 251
Okay everyone, I've got a problem with one of my triggers in my map. It is supposed to hurt units owned by a player that enter a region after 10 seconds, but at this point I'm stumped. Heres the trigger:
Will reward anyone who solves this with +rep
-
AntiCamp Enter
-
Events
-
Unit - A unit enters Wendigo Hurt Zone <gen>
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 9 (Gray)
-
-
Actions
-
Trigger - Turn off (This trigger)
-
Game - Display to PLGSingular[9] the text: If you do not leave...
-
Wait 10.00 seconds
-
For each (Integer A) from 1 to 256, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in Wendigo Hurt Zone <gen>) and do (Actions)
-
Loop - Actions
-
Set AntiCampUnitArray[(Integer A)] = (Picked unit)
-
Unit - Set the custom value of (Picked unit) to (Integer A)
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(AntiCampUnitArray[(Custom value of (Matching unit))] is in (Units in Wendigo Hurt Zone <gen>)) Equal to True
-
-
Then - Actions
-
Trigger - Turn on AntiCamp Damage <gen>
-
-
Else - Actions
-
Trigger - Turn on (This trigger)
-
-
-
-
-
(AntiCampUnitArray[(Custom value of (Matching unit))] is in (Units in Wendigo Hurt Zone <gen>)) Equal to True
Will reward anyone who solves this with +rep