Hi! I'm working on a game that spawns units based on buildings. I'm having some trouble figuring out how to do this. I need a trigger that can count all of the buildings in an area and store that number in a variable. I've looked on the site, and the only one I found regarding this concept was on counting buildings in an AI (from the tutorial) and it was way too confusing. Can someone help?
Unit Group - Pick each unit in (Any units in (Entire map) owned by player Any Player matching Required: Structure, with at most Any Amount) and do (Actions)
Actions
Variable - Set X = (X + 1)
Hi! I'm working on a game that spawns units based on buildings. I'm having some trouble figuring out how to do this. I need a trigger that can count all of the buildings in an area and store that number in a variable. I've looked on the site, and the only one I found regarding this concept was on counting buildings in an AI (from the tutorial) and it was way too confusing. Can someone help?
@obliviron: Go
awesome! that works! Thanks for all of your help! JoHe