- Joined
- Dec 10, 2015
- Messages
- 85
Hello,
I want to create a trigger that makes buildings spawn units.
I know how to do it. But the way I would do it is by making a trigger for each building/unit. Each building-type spawn a different unit-type. For example, Warrior Camp spawn Warriors, Spearman Camp spawn Spearman, etc..
So, is there a way to match units-type between them, like Warriors with Warrior Camp, and make only one trigger like :
For each VarX, create a unit of type VarY
where VarX is a building and VarY is the unit type that match the building.
So, is there a way to do that, or do i need to make a trigger for each building/unit match?
I want to create a trigger that makes buildings spawn units.
I know how to do it. But the way I would do it is by making a trigger for each building/unit. Each building-type spawn a different unit-type. For example, Warrior Camp spawn Warriors, Spearman Camp spawn Spearman, etc..
So, is there a way to match units-type between them, like Warriors with Warrior Camp, and make only one trigger like :
For each VarX, create a unit of type VarY
where VarX is a building and VarY is the unit type that match the building.
So, is there a way to do that, or do i need to make a trigger for each building/unit match?