- Joined
- Aug 5, 2010
- Messages
- 147
I have these 2 triggers working for the region Creep Spawn One, but there are 7 more regions that need to have the same actions happen, the only difference would be the array number of ConquestPointsTick1 and ConquestPointsTick2, array 1 being Creep Spawn One and so on.
Now i could make 16 triggers, 8 Enter triggers and 8 Leave triggers, but i want to know if its possible to do it using less triggers, preferable two triggers
Now i could make 16 triggers, 8 Enter triggers and 8 Leave triggers, but i want to know if its possible to do it using less triggers, preferable two triggers
-
Point Enter
-
Events
-
Unit - A unit enters Creep Spawn One <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
-
((Unit-type of (Entering unit)) is A Hero) Equal to True
-
-
Then - Actions
-
Set ConquestPointsTick1[1] = (ConquestPointsTick1[1] + 1)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Entering unit) belongs to an ally of Player 7 (Green)) Equal to True
-
((Unit-type of (Entering unit)) is A Hero) Equal to True
-
-
Then - Actions
-
Set ConquestPointsTick2[1] = (ConquestPointsTick2[1] + 1)
-
-
Else - Actions
-
-
-
-
Point Leave
-
Events
-
Unit - A unit leaves Creep Spawn One <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Entering unit) belongs to an ally of Player 1 (Red)) Equal to True
-
((Unit-type of (Entering unit)) is A Hero) Equal to True
-
-
Then - Actions
-
Set ConquestPointsTick1[1] = (ConquestPointsTick1[1] - 1)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Entering unit) belongs to an ally of Player 7 (Green)) Equal to True
-
((Unit-type of (Entering unit)) is A Hero) Equal to True
-
-
Then - Actions
-
Set ConquestPointsTick2[1] = (ConquestPointsTick2[1] - 1)
-
-
Else - Actions
-
-
-