turf
var
Oxygen = 60
CarbonDioxide = 90
Nitrogen = 6
NormalCarbonDioxide = 2
NormalNitrogen = 78
NormalOxygen = 20
New()
..()
MaintainAtmosphere()
proc
MaintainAtmosphere()
while(1==1)
{
if(Oxygen > NormalOxygen)
Oxygen -= 0.50;
sleep(25);
else if(Oxygen < NormalOxygen)
Oxygen += 0.50;
sleep(25);
else
Oxygen += (rand(-1,1));
sleep(25);
if(Nitrogen > NormalNitrogen)
Nitrogen -= 0.50;
sleep(25);
else if(Nitrogen < NormalNitrogen)
Nitrogen += 0.50;
sleep(25);
else
Nitrogen += (rand(-1,1));
sleep(25);
if(CarbonDioxide > NormalCarbonDioxide)
CarbonDioxide -= 0.50;
sleep(25);
else if(CarbonDioxide < NormalCarbonDioxide)
CarbonDioxide += 0.50;
sleep(25);
else
CarbonDioxide += (rand(-1,1));
sleep(25);
sleep(10)
world << "[CarbonDioxide], [Oxygen], [Nitrogen]"
}
Problem description:
Well, i am trying to test this system out but i'm not sure how/what should i use to output the values of the turfs. If you have anything that simplify this then please post your opinion, I'll take it into consideration.
You could also throw together some bars and display them in each turf's overlays to see the levels all at once.
If you've played with the latest beta, you could try the new maptext support and add some text overlays to display each value. Or you could use DmiFontsPlus.