My game uses this method to keep track of the year.



Code:
var week = -60; //60 seconds make a week
var_nsave count_time = 1815; //starting year number

function Year_startup() //calculates year
{
while(count_time >= 0)
{
wait(week);
wait(week);
wait(week);
wait(week);
count_time += 1;
wait(1);
}
}



That works as it is supposed to. The year number changes after the set amount of time.

But when I use count_time in a condition like this:

Code:
if(count_time > 1816)
{
wait(-5);
bronze_pan.visible = on;
set_mouse(2);
}



nothing happens. What am I missing?