:: lariska_schedule
<<set $here = 'lariska_schedule'>>
<<set $ARGS = $location_var[$here]>>
<!-- !! 2022/06/04 - Alaratt-->
<<setinit $locat['Lariska'] = 0>>
<<setinit $locat['Lariska'] = 0>>
<<setinit $locat['Lari_athome'] = 0>>
<!-- !! locat['Lari_athome'] = 1 means Lariska is not only home, but available to answer the door if you knock-->
<<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['Lariska'] = 1>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 7>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['Lariska'] = 2>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 7 and $time.minutes <= 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['Lariska'] = 3>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 7 and $time.minutes < 30>>
			<!-- !!NotHome - Walking to school-->
			<<setinit $locat['Lariska'] = 4>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 14>>
			<!-- !!NotHome - At School-->
			<<setinit $locat['Lariska'] = 5>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 16>>
			<<if ($time.weekday == 2 or $time.weekday == 4) and ($time.month >= 10 or $time.month <= 5)>>
				<!-- !!NotHome - Cheerleader Practice-->
				<<setinit $locat['Lariska'] = 6>>
				<<setinit $locat['Lari_athome'] = 0>>
			<<elseif $time.weekday == 5 and getvar("$odd_week") == 1 and ($time.month >= 10 or $time.month <= 5)>>
				<!-- !!NotHome - Game Night-->
				<<setinit $locat['Lariska'] = 7>>
				<<setinit $locat['Lari_athome'] = 0>>
			<<else>>
				<<if $quest('school').homeworkLeft > 0>>
					<!-- !!Bedroom - Homework-->
					<<setinit $locat['Lariska'] = 8>>
					<<setinit $locat['Lari_athome'] = 1>>
				<<else>>
					<!-- !!Bedroom - Hanging Out-->
					<<setinit $locat['Lariska'] = 22>>
					<<setinit $locat['Lari_athome'] = 1>>
				<</if>>
			<</if>>
		<<elseif $time.hour < 18>>
			<<if getvar("$cheerleaders_on") == 1>>
				<!-- !!Bedroom - Hanging Out-->
				<<setinit $locat['Lariska'] = 22>>
				<<setinit $locat['Lari_athome'] = 1>>
			<<else>>
				<!-- !!NotHome - Community Center-->
				<<setinit $locat['Lariska'] = 9>>
				<<setinit $locat['Lari_athome'] = 0>>
			<</if>>
		<<elseif $time.hour == 18 and $time.minutes < 30>>
			<!-- !!Kitchen - Cooking Dinner-->
			<<setinit $locat['Lariska'] = 11>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour <= 19>>
			<!-- !!Kitchen - Eating Dinner-->
			<<setinit $locat['Lariska'] = 12>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 19 and $time.minutes <= 30>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 21>>
			<!-- !!Living Room - Watching TV-->
			<<setinit $locat['Lariska'] = 14>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<else>>
			<!-- !!Bedroom - Reading in bed-->
			<<setinit $locat['Lariska'] = 15>>
			<<setinit $locat['Lari_athome'] = 0>>
		<</if>>
	<<elseif $time.weekday == 6>>
		<<if $time.hour < 9>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['Lariska'] = 1>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour == 9 and $time.minutes <= 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['Lariska'] = 3>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 11 or ($time.hour == 11 and $time.minutes < 15)>>
			<!-- !!Living Room - Working Out-->
			<<setinit $locat['Lariska'] = 16>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 11 and $time.minutes < 45>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 12>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['Lariska'] = 2>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 17 or ($time.hour == 17 and $time.minutes < 45)>>
			<!-- !!Bedroom - Hanging Out-->
			<<setinit $locat['Lariska'] = 22>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 17 and $time.minutes > 45>>
			<<if getvar("$LariskaQW['volleyball']") == 1>>
				<!-- !!!!NotHome - Community Center - Volleyball Game-->
				<<setinit $locat['Lariska'] = 21>>
				<<setinit $locat['Lari_athome'] = 0>>
			<<else>>
				<!-- !!Living Room - Watching TV-->
				<<setinit $locat['Lariska'] = 14>>
				<<setinit $locat['Lari_athome'] = 1>>
			<</if>>
		<<elseif $time.hour == 22 and $time.minutes <= 30>>
			<!-- !!Kitchen - Dinner-->
			<<setinit $locat['Lariska'] = 12>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 23>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<else>>
			<!-- !!Bedroom - Reading in bed-->
			<<setinit $locat['Lariska'] = 15>>
			<<setinit $locat['Lari_athome'] = 0>>
		<</if>>
	<<else>>
		<<if $time.hour < 9>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['Lariska'] = 1>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour == 9 and $time.minutes <= 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['Lariska'] = 3>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 11 or ($time.hour == 11 and $time.minutes < 15)>>
			<!-- !!Living Room - Working Out-->
			<<setinit $locat['Lariska'] = 16>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 11 and $time.minutes < 45>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 12>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['Lariska'] = 2>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 12 and $time.minutes < 30>>
			<!-- !!Bedroom - Cleaning-->
			<<setinit $locat['Lariska'] = 17>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 13>>
			<!-- !!Living Room - Cleaning-->
			<<setinit $locat['Lariska'] = 18>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 13 and $time.minutes < 30>>
			<!-- !!Kitchen - Cleaning-->
			<<setinit $locat['Lariska'] = 19>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 14>>
			<!-- !!Bathroom - Cleaning-->
			<<setinit $locat['Lariska'] = 20>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 20>>
			<!-- !!Bedroom - Hanging Out-->
			<<setinit $locat['Lariska'] = 22>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 22>>
			<!-- !!Living Room - Watching TV-->
			<<setinit $locat['Lariska'] = 14>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 22 and $time.minutes <= 30>>
			<!-- !!Kitchen - Dinner-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 23>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<else>>
			<!-- !!Bedroom - Reading in bed-->
			<<setinit $locat['Lariska'] = 15>>
			<<setinit $locat['Lari_athome'] = 0>>
		<</if>>
	<</if>>
<<else>>
	<<if $time.weekday <= 6>>
		<<if $time.hour < 9>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['Lariska'] = 1>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour == 9 and $time.minutes < 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['Lariska'] = 3>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 11 or ($time.hour == 11 and $time.minutes < 15)>>
			<!-- !!Living Room - Working Out-->
			<<setinit $locat['Lariska'] = 16>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 11 and $time.minutes < 45>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour < 12>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['Lariska'] = 2>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 17 or ($time.hour == 17 and $time.minutes < 45)>>
			<!-- !!Bedroom - Hanging Out-->
			<<setinit $locat['Lariska'] = 22>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 22>>
			<!-- !!Living Room - Watching TV-->
			<<setinit $locat['Lariska'] = 14>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 22 and $time.minutes <= 30>>
			<!-- !!Kitchen - Dinner-->
			<<setinit $locat['Lariska'] = 12>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 23>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<if $time.weekday == 6>>
				<!-- !!Anna can answer the door and let you in-->
				<<setinit $locat['Lari_athome'] = 1>>
			<<else>>
				<!-- !!Anna is not home to answer the door-->
				<<setinit $locat['Lari_athome'] = 0>>
			<</if>>
		<<else>>
			<!-- !!Bedroom - Reading in bed-->
			<<setinit $locat['Lariska'] = 15>>
			<<setinit $locat['Lari_athome'] = 0>>
		<</if>>
	<<else>>
		<<if $time.hour < 9>>
			<!-- !!Bedroom - Asleep-->
			<<setinit $locat['Lariska'] = 1>>
			<<setinit $locat['Lari_athome'] = 0>>
		<<elseif $time.hour == 9 and $time.minutes <= 15>>
			<!-- !!Kitchen - Breakfast-->
			<<setinit $locat['Lariska'] = 3>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 11 or ($time.hour == 11 and $time.minutes < 15)>>
			<!-- !!Living Room - Working Out-->
			<<setinit $locat['Lariska'] = 16>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 11 and $time.minutes < 45>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 12>>
			<!-- !!Bedroom - Getting Dressed-->
			<<setinit $locat['Lariska'] = 2>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 12 and $time.minutes < 30>>
			<!-- !!Bedroom - Cleaning-->
			<<setinit $locat['Lariska'] = 17>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 13>>
			<!-- !!Living Room - Cleaning-->
			<<setinit $locat['Lariska'] = 18>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 13 and $time.minutes < 30>>
			<!-- !!Kitchen - Cleaning-->
			<<setinit $locat['Lariska'] = 19>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 14>>
			<!-- !!Bathroom - Cleaning-->
			<<setinit $locat['Lariska'] = 20>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 20>>
			<!-- !!Bedroom - Hanging Out-->
			<<setinit $locat['Lariska'] = 22>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 22>>
			<!-- !!Living Room - Watching TV-->
			<<setinit $locat['Lariska'] = 14>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour == 22 and $time.minutes <= 30>>
			<!-- !!Kitchen - Dinner-->
			<<setinit $locat['Lariska'] = 12>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<elseif $time.hour < 23>>
			<!-- !!Bathroom - Shower-->
			<<setinit $locat['Lariska'] = 13>>
			<<setinit $locat['Lari_athome'] = 1>>
		<<else>>
			<!-- !!Bedroom - Reading in bed-->
			<<setinit $locat['Lariska'] = 15>>
			<<setinit $locat['Lari_athome'] = 0>>
		<</if>>
	<</if>>
<</if>>
