I am making a game where you are the governor of a city, and you have to "manage" its citizens and economy. I currently have variables for "male", "female", "pop" (population), "trade", "births", and "deaths". I want the amounts of males, females, births, and deaths to be random (or partly random and partly based on certain parameters). Does anybody know how I would go about writing the code for this?
______________________________________________________________________________________________________________________
Thankyou for your help with this. I have another question. This game is not turn based, its in realtime. I was thinking of making every 15 minutes a different season, and every four seasons, the year would update. That would make each year an hour in realtime. I am not sure exactly how to do this. I tried using sys_minutes, but that didn't work. I also don't know how to make the random variables update only once a season. Can anyone help me?
-Deyshawn
Last edited by deyshawn; 01/19/09 14:41.