PDA

View Full Version : Help temperature


johannes95
10/04/2012, 09:28 AM
How to make something like this about the temperature where is it based on or how to make this system
http://i40.tinypic.com/w0rfxf.png

lekizinho
10/04/2012, 02:32 PM
This is something very complex, but the Season must be based on weather ids and the temperature must be random like:

Winter > Temperatures Between -17 - +7
Summer > +15 - +34

johannes95
10/04/2012, 02:49 PM
I know but you know how?

I have already Date and season, but i dont know how to do temperature the season is based on the weather

johannes95
10/04/2012, 04:18 PM
??????

VenomXNL
10/04/2012, 04:28 PM
I'm just Typing this here on the forum but i think you could do something with this sample:


#define MAX_TEMP 7
#define MIN_TEMP -17

switch(GetSeason)
{
case 0:{
new Temp=(random(MAX_TEMP-MIN_TEMP)+MIN_TEMP);
}
}


stock GetSeason(){
//Edit this code read/detect your own season code's and functions!
return 0;
//return 1;
//return 2;
//return 3;

return -1;
}


It's written quickly from scratch and NOT garantued to work i did not had the time to test it,
but i'm very sure you can work on from this ;)

Good luck

[EDIT]

Offcourse you use the 'switch' section in your own timer, refresh or whet ever ;)