Population Trigger

Status
Not open for further replies.
Level 5
Joined
Oct 7, 2005
Messages
102
Okay guys, I thought I had conquered this trigger. But things are just going wrong and I don't understand why. Looking at the trigger, it's just got too complicated.

SO! I humbly ask those skilled trigger'ers amongst you to please produce for me a map with a set of triggers that simulates population and living space.

This is basically the food system already in the game, but I'm using that for actual food and not living space.

What I need is a trigger that counts all the people owned by the player and keeps track of that number through a variable which I will display through a leader board.

I also need a trigger that adds +3 to a variable that keeps track of the total living space, everytime a specific unit is built (the house).

I need a trigger that removes 3 from the living space variable everytime a house unit is destroyed or removed.

I need a trigger that disables a trigger everytime the population is equal to or greater than the living space. This simulates the birthrate halting because of no living space. (just make the disabled trigger empty as long as you know it works)

And of course a trigger that enables that disabled trigger everytime the population goes from equal to or greater than the living space, to under the living space.

*****************
Please take the time to provide this, I would be very grateful and you would get your name clearly on the credits to my map, which I'm sure will be successful with a lot of people!

Thanks a lot guys!
 
Level 9
Joined
Oct 11, 2009
Messages
477
Try creating a Unit Group which relates to the units owned by the player and count the number of picked units in the mentioned Unit Group...

Got it? If not, I will provide a trigger for you.
 
Status
Not open for further replies.
Top