I am trying to make it so that when a building is made somewhere on the map that a certain unit will spawn at it periodically. I messed with these triggers last night and could not get them to work. Any ideas as to how to make this work?
Trigger concept
If Player X constructs Building Y on the entire map Spawn 1 of Unit Z at Building Y every 3 seconds for Player X
For Each unit in Unit Group(A group of a particular building)
Create Marine at Picked Unit.
For Each unit in Unit Group(A group of another particular building)
Create Marauder at Picked Unit.
Trigger 2
Events-
Unit enters region entire map
Conditions-
None
Actions-
If
Building type is Barracks
Add building to Barracks Unit Group
Else If
Building type is Bunker
Add building to Bunker Unit Group
Or you could use data to make it so that the building either creates a unit or is issued an order to train a unit and give the building the train ability. Using Effects (like issue order) and Behaviors (behavior buff with a period that calls the issue order).
I am trying to make it so that when a building is made somewhere on the map that a certain unit will spawn at it periodically. I messed with these triggers last night and could not get them to work. Any ideas as to how to make this work?
Trigger concept If Player X constructs Building Y on the entire map Spawn 1 of Unit Z at Building Y every 3 seconds for Player X
You could do it several ways. Should not be hard.
Basic loop you would want:
Trigger 1
Events-
Conditions-
Actions-
Trigger 2
Events-
Conditions-
Actions-
Or you could use data to make it so that the building either creates a unit or is issued an order to train a unit and give the building the train ability. Using Effects (like issue order) and Behaviors (behavior buff with a period that calls the issue order).
Where is the "Create Unit at Picked Unit" trigger? I cannot find it anywhere