:: igor_schedule
<<set $here = 'igor_schedule'>>
<<set $ARGS = $location_var[$here]>>
<!-- !!2022/01/27-->
<<setinit $locat['igor'] = 0>>
<<if $pc.isSchoolStudent and $time.isSchoolHoliday == 0>>
	<<if $time.weekday <= 5>>
		<<if $time.hour < 6 or ($time.hour == 6 and $time.minutes < 45)>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour < 7>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour == 7 and $time.minutes <= 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour == 7 and $time.minutes < 30>>
			<!-- !!NotHome - Walking to school-->
			<<setinit $locat['igor'] = 4>>
		<<elseif $time.hour < 14>>
			<!-- !!NotHome - At School-->
			<<setinit $locat['igor'] = 5>>
		<<elseif $time.hour < 15>>
			<!-- !!NotHome - Hanging out near the school or walking home from school-->
			<<setinit $locat['igor'] = 6>>
		<<elseif $time.hour < 20>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<elseif $time.hour < 23>>
			<<if $time.weekday == 5>>
				<!-- !!At the comunity center disco-->
				<<setinit $locat['igor'] = 8>>
			<<else>>
				<!-- !!At home in his room-->
				<<setinit $locat['igor'] = 7>>
			<</if>>
		<<else>>
			<<if $time.weekday == 5>>
				<!-- !!At the comunity center disco-->
				<<setinit $locat['igor'] = 8>>
			<<else>>
				<!-- !!In his room with going to bed-->
				<<setinit $locat['igor'] = 9>>
			<</if>>
		<</if>>
	<<elseif $time.weekday == 6>>
		<<if $igor_DimaNos_day == $time.daystart>>
			<!-- !! Igor is at a date with Dimka wont be availebel whole day.-->
			<<setinit $locat['igor'] = 11>>
		<<elseif $time.hour < 8>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour == 8 and $time.minutes < 30>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour < 9>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour < 20>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<else>>
			<!-- !!At the comunity center disco-->
			<<setinit $locat['igor'] = 8>>
		<</if>>
	<<else>>
		<<if $time.hour < 8>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour == 8 and $time.minutes < 30>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour < 9>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour < 12>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<elseif $time.hour < 15>>
			<<if $weather.temperature >= 20 and !$weather.isRaining and $time.month >= 5 and $time.month <= 9>>
				<!-- !!At the lake beach hanging out with the other cool kids and the jocks-->
				<<setinit $locat['igor'] = 10>>
			<<else>>
				<!-- !!At home in his room-->
				<<setinit $locat['igor'] = 7>>
			<</if>>
		<<elseif $time.hour < 23>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<else>>
			<!-- !!In his room with going to bed-->
			<<setinit $locat['igor'] = 9>>
		<</if>>
	<</if>>
<<else>>
	<<if $time.weekday <= 5>>
		<<if $time.hour < 7 or ($time.hour == 7 and $time.minutes < 45)>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour < 7>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour == 8 and $time.minutes <= 30>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour < 12>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<elseif $time.hour < 15>>
			<<if $weather.temperature >= 20 and !$weather.isRaining and $time.month >= 5 and $time.month <= 9 and $time.weekday % 2 == 0>>
				<!-- !!At the lake beach hanging out with the other cool kids and the jocks-->
				<<setinit $locat['igor'] = 10>>
			<<else>>
				<!-- !!At home in his room-->
				<<setinit $locat['igor'] = 7>>
			<</if>>
		<<elseif $time.hour < 20>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<elseif $time.hour < 23>>
			<<if $time.weekday == 5>>
				<!-- !!At the comunity center disco-->
				<<setinit $locat['igor'] = 8>>
			<<else>>
				<!-- !!At home in his room-->
				<<setinit $locat['igor'] = 7>>
			<</if>>
		<<else>>
			<<if $time.weekday == 5>>
				<!-- !!At the comunity center disco-->
				<<setinit $locat['igor'] = 8>>
			<<else>>
				<!-- !!In his room with going to bed-->
				<<setinit $locat['igor'] = 9>>
			<</if>>
		<</if>>
	<<elseif $time.weekday == 6>>
		<<if $igor_DimaNos_day == $time.daystart>>
			<!-- !! Igor is at a date with Dimka wont be availebel whole day.-->
			<<setinit $locat['igor'] = 11>>
		<<elseif $time.hour < 8>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour == 8 and $time.minutes < 30>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour < 9>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour < 12>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<elseif $time.hour < 15>>
			<<if $weather.temperature >= 20 and !$weather.isRaining and $time.month >= 5 and $time.month <= 9>>
				<!-- !!At the lake beach hanging out with the other cool kids and the jocks-->
				<<setinit $locat['igor'] = 10>>
			<<else>>
				<!-- !!At home in his room-->
				<<setinit $locat['igor'] = 7>>
			<</if>>
		<<elseif $time.hour < 20>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<else>>
			<!-- !!At the comunity center disco-->
			<<setinit $locat['igor'] = 8>>
		<</if>>
	<<else>>
		<<if $time.hour < 8>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['igor'] = 1>>
		<<elseif $time.hour == 8 and $time.minutes < 30>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['igor'] = 2>>
		<<elseif $time.hour < 9>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['igor'] = 3>>
		<<elseif $time.hour < 23>>
			<!-- !!At home in his room-->
			<<setinit $locat['igor'] = 7>>
		<<else>>
			<!-- !!In his room going to bed-->
			<<setinit $locat['igor'] = 9>>
		<</if>>
	<</if>>
<</if>>
