Actually, even though the units are in the Bunker can't they still be considered to be in the location "Anywhere?" I remember playing a defense where you'd use a civilian to purchase things, but you could also put it in a Shuttle and then bring the Shuttle to the beacon to buy units and it worked just as well. The trigger still recognized that the Civilian was in the location despite it being in the Shuttle. Is this the same for Bunkers as well?
Here's how I do cloaked bunkers:
| Trigger |
| Players: |
| ¤ Player 1 |
| Conditions: |
¤ Current Player brings exactly 1 Terran Bunker to [Location that perfectly fits around the bunker]
|
| ¤ Player 1 Bunker is cleared. |
| Actions: |
¤ Create 2 Terran Marines for Current Player at [Location that perfectly fits around the bunker]
|
¤ Execute AI script: Enter closest bunker.
|
¤ Wait for 499 milliseconds.
|
¤ Set Player 1 Bunker.
|
| ¤ Preserve trigger. |
And then...
| Trigger |
| Players: |
| ¤ Player 1 |
| Conditions: |
¤ Player 1 Bunker is set.
|
| ¤ Current Player brings exactly 2 Terran Marines to [Location that perfectly fits around the bunker] |
| Actions: |
¤ Disable doodad state for all Terran Bunker owned by Current Player at [Location that perfectly fits around the bunker]
|
¤ Clear Player 1 Bunker.
|
| ¤ Preserve trigger |
I know this one works, but technically you don't have to split it into two separate triggers - I'm just really picky with how I organize my triggers.
And also notice that in this case, it isn't that you bring 0 Marines to Anywhere, its tha you have exactly 2 Marines at the Bunker's location.