Aaronx
New Member
- Reaction score
- 6
I'm trying to make it so that when a region is empty of a player's units, it turns another trigger on. Here's the trigger for my spawn trigger for a part of my map:
Then here's the trigger that's supposed to turn another one on:
I'm assuming it has to do with the second one. Any ideas how to fix?
Code:
Weak
Events
Unit - A unit enters Spawn Weak <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Hero level of (Entering unit)) Greater than or equal to 16
Actions
Trigger - Turn off (This trigger)
Trigger - Turn off Leave Arena <gen>
Trigger - Turn off Easy <gen>
Trigger - Turn off Medium <gen>
Trigger - Turn off Hard <gen>
Trigger - Turn off Brutal <gen>
Unit - Create 2 Kobold Combatant for Player 11 (Dark Green) at (Center of Stadium <gen>) facing Default building facing degrees
Wait 0.60 seconds
Destructible - Open Colisuseum Gate (Horizontal) 1544 <gen>
Wait 0.10 seconds
Unit Group - Order (Last created unit group) to Right-Click (Random point in Stadium Order <gen>)
Wait 2.10 seconds
Destructible - Close Colisuseum Gate (Horizontal) 1544 <gen>
Wait 15.00 seconds
Trigger - Turn on Weak <gen>
Trigger - Turn on Easy <gen>
Trigger - Turn on Medium <gen>
Trigger - Turn on Hard <gen>
Trigger - Turn on Brutal <gen>
Trigger - Turn on LeaveArena2 <gen>
Then here's the trigger that's supposed to turn another one on:
Code:
LeaveArena2
Events
Time - Every 1.25 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Coliseum Arena <gen> owned by Player 11 (Dark Green))) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Leave Arena <gen>
Else - Actions
Do nothing
I'm assuming it has to do with the second one. Any ideas how to fix?