I'm trying to figure out how to add to a Integer for a counter of particular type of unit. Let's say for example that I have a basic typical Blizzard type of training mission like for example: Build Barracks, 4 Supply Depots then train 10 Marines. How can I tell if the player has built any of these buildings/units let alone add 1 to one of the Variable Integers.
I'm trying to figure out how to add to a Integer for a counter of particular type of unit. Let's say for example that I have a basic typical Blizzard type of training mission like for example: Build Barracks, 4 Supply Depots then train 10 Marines. How can I tell if the player has built any of these buildings/units let alone add 1 to one of the Variable Integers.
Thanks, Deathknight
Well, one way would be to simply set an variable integer = the number of unit of type blablabla in the entire map owned by player blablabla.
I think under Tech Tree there is a trigger action like "Count Tech for Player" where you can input the type of tech you want ( a building or a unit) and it'll return to you the number of unit/buildings this player has of this type.
I'm trying to figure out how to add to a Integer for a counter of particular type of unit. Let's say for example that I have a basic typical Blizzard type of training mission like for example: Build Barracks, 4 Supply Depots then train 10 Marines. How can I tell if the player has built any of these buildings/units let alone add 1 to one of the Variable Integers.
Thanks, Deathknight
Well, one way would be to simply set an variable integer = the number of unit of type blablabla in the entire map owned by player blablabla.
From there, make some sort of statement.
That would be one way.
I think under Tech Tree there is a trigger action like "Count Tech for Player" where you can input the type of tech you want ( a building or a unit) and it'll return to you the number of unit/buildings this player has of this type.
Or..
Like that.
Thank you everyone for your help, all I needed was the condition to be triggering unit = barracks or marine. Thanks again :)