:: npc_artem[npc]
<<switch $location_var[$here][0]>>
	<<case 'location'>>
        <<if $time.isSchoolDay>>
            <<if $time.hour < 6 or ($time.hour == 6 and $time.minutes < 30)>>
                <<set $result = {location: 'home',activity:['sleep'],end:$time.time(6,30)}>>
            <<elseif $time.hour < 7>>
                <<set $result = {location: 'home',activity:['bathroom'],end:$time.time(7,0)}>>
            <<elseif $time.hour == 7>>
				<<if $time.minutes < 15>>
                	<<set $result = {location: 'home',activity:['breakfast'],end:$time.time(7,15)}>>
				<<elseif $time.minutes < 30>>
                	<<set $result = {location: 'home',activity:['leavingForSchool'],end:$time.time(7,30)}>>
				<<else>>
					<<set $result = {location: 'outdoors',activity:['walkingToSchool'],end:$time.time(8,0)}>>
				<</if>>
            <<elseif $time.hour < 14>>
                <<set $result = {location: 'school',activity:['classes'],end:$time.time(14,0)}>>
			<<elseif $time.hour == 14>>
				<<if $time.minutes < 15>>
					<<set $result = {location: 'school',activity:['socializing'],end:$time.time(14,15)}>>
				<<elseif $time.minutes < 45>>
					<<set $result = {location: 'outdoors',activity:['walkingHome'],end:$time.time(14,45)}>>
				<<else>>
					<<set $result = {location: 'home',activity:['studying'],end:$time.time(17,0)}>>
				<</if>>
			<<elseif $time.hour < 17>>
				<<set $result = {location: 'home',activity:['studying'],end:$time.time(17,0)}>>
			<<elseif $time.hour < 22>>
				<<set $result = {location: 'home',activity:['relaxing'],end:$time.time(22,0)}>>
			<<else>>
				<<set $result = {location: 'home',activity:['sleep'],end:$time.time(23,59)}>>
            <</if>>
		<</if>>
	<<case 'vars'>>
		<<switch $location_var[$here][1]>>
			<<case 'interactions'>>
				<<set $result = {}>>
			<<case 'isInvitedHome'>>
				<<set $result = $q.questIsActive('artemTutoring')>>
		<</switch>>		
<</switch>>