-- global variable
week = 1
function NewDayF()
dow = GetDate(3)
if dow == 1 then
week = week + 1
end
end
Trigger(0, "NewDayF")
I usually do it this way.
Well, there's not much difference, of course, but without 3.1, you still won't get very far. And I always try to get rid of global variables.