Complex Population System
by Barak Shechter · in RTS Starter Kit · 01/22/2007 (4:19 pm) · 1 replies
I just started getting into game development and chose my first project to be an RTS. I have a little expirence with java, so the script thats written I can understand it, but can't produce any of my own.
With my RTS I want to make it unique, so I have this idea for a population system:
To create a unit, e.g. a worker, warrior etc, the player must take a citizen and move him to a training center (e.g. archery range, barracks or even school to create scholars). The rate of citizen creation is directly proportional to a tribe's food, gold income and a population's bonuses (water sources etc.) At a birth rate of 1.00, a citizen will be created every a certain number of seconds. A maximum population will also be set to stop overgrowth of a population and avoid slowing down of the game.
Citizens will be created in intervals without taking any resources from the player, but once you train a citizen, it will take a certain amount of resources...
1. I am in desparate need for a resource system code (if anyone could please direct me to a tutorial)
2. Can anyone explain to me how I would implement this system into the game (I mean what scripts to make, how to execute them where to execute them)
Any more info you have to give me would be great!
With my RTS I want to make it unique, so I have this idea for a population system:
To create a unit, e.g. a worker, warrior etc, the player must take a citizen and move him to a training center (e.g. archery range, barracks or even school to create scholars). The rate of citizen creation is directly proportional to a tribe's food, gold income and a population's bonuses (water sources etc.) At a birth rate of 1.00, a citizen will be created every a certain number of seconds. A maximum population will also be set to stop overgrowth of a population and avoid slowing down of the game.
Citizens will be created in intervals without taking any resources from the player, but once you train a citizen, it will take a certain amount of resources...
1. I am in desparate need for a resource system code (if anyone could please direct me to a tutorial)
2. Can anyone explain to me how I would implement this system into the game (I mean what scripts to make, how to execute them where to execute them)
Any more info you have to give me would be great!
About the author
Associate Anthony Rosenbaum