# arkadi_fyodorov_schedule
!! 2023-05-26

!! His schedule:
!ArkadiLocCity tells us where Arkadi is located
!locat['A156'] =
!----------------------------------------------
!locat['A156'] = 0 (Arkadi not home Fri and Sat 20:00 for rest of night)
!locat['A156'] = 1 (Arkadi in the hallway)
!locat['A156'] = 2 (Arkadi in Anushka''s room)
!locat['A156'] = 3 (Arkadi in Radomir''s room)
!locat['A156'] = 4 (Arkadi in the kitchen)
!locat['A156'] = 5 (Arkadi in the livingroom)
!locat['A156'] = 6 (Arkadi in his and Valentin''s room)
!locat['A156'] = 7 (Arkadi in the bathroom)
!locat['A156'] = 8 (Arkadi is in the garage with the band Wed 18-23)
!locat['A156'] = 9 (Arkadi is at work, factory Mon-Fri 8 to 17)

!locat['A156'] = 20 Home, sleeping getting up in the morning and walking to school.
!locat['A156'] = 21 At school.
!locat['A156'] = 23 Out at an unspecified location in Pav.
!locat['A156'] = 24 Practicing with the band in the garage.
!locat['A156'] = 25 At the community center disco.

!locat['A156'] = 30 On tour with the band

!---------------------------------------------

!! Todo !!Arkadi is home Mon-Tues and Thurs from 18:00 for rest of night, Sun all day

if yearstart = 1 and (month < 6 or year = 2016):
	!! Schedule for the first year of the game until just after school ends
	if week < 6:
		if hour < 8:
			locat['A156'] = 20
		elseif hour < 16:
			locat['A156'] = 23
		elseif hour < 20:
			if week = 3:
				locat['A156'] = 24
			else
				locat['A156'] = 23
			end
		elseif hour < 22:
			if week = 3:
				locat['A156'] = 24
			elseif week = 5:
				locat['A156'] = 25
			else
				locat['A156'] = 23
			end
		else
			if week = 5:
				locat['A156'] = 25
			else
				locat['A156'] = 20
			end
		end
	elseif week = 6:
		if hour < 9:
			locat['A156'] = 20	
		elseif hour < 20:
			locat['A156'] = 23
		else
			locat['A156'] = 25
		end
	else
		if hour < 9:
			locat['A156'] = 20	
		elseif hour < 22:
			locat['A156'] = 23
		else
			locat['A156'] = 20
		end
	end
elseif yearstart = 1 or (yearstart = 2 and month = 8 and day < 10):
	!! Schedule for the rest of the first year (and a week of the second) She is on tour with the band.
	locat['A156'] = 30
else
	if week = 1:
		if hour >= 8 and hour < 17:
			locat['A156'] = 9
		end
	elseif week = 2:
		if hour >= 8 and hour < 17:
			locat['A156'] = 9
		end
	elseif week = 3:
		if hour >= 8 and hour < 17:
			locat['A156'] = 9
		elseif hour >= 18 and hour < 23:
			locat['A156'] = 8
		end
	elseif week = 4:
		if hour >= 8 and hour < 17:
			locat['A156'] = 9
		end
	elseif week = 5:
		if hour >= 8 and hour < 17:
			locat['A156'] = 9
		elseif hour >= 20:
			locat['A156'] = 0
		end
	elseif week = 6:
		if hour >= 20:
			locat['A156'] = 0
		end
	elseif week = 7:
	end
end

if locat['A156'] > 0 and locat['A156'] < 8:
	$ArkadiLocCity = 'home'
else
	$ArkadiLocCity = 'notHome'
end

if $ARGS[0] = 'getLocation':
	!Set the text for the current NPC ID
	if locat['A156'] = 0:
		$npcLocation['A156'] = 'Arkadi not home Fri and Sat 20:00 for rest of night.'
	elseif locat['A156'] = 1:
		$npcLocation['A156'] = 'Arkadi in the hallway.'
	elseif locat['A156'] = 2:
		$npcLocation['A156'] = 'Arkadi in Anushka''s room.'
	elseif locat['A156'] = 3:
		$npcLocation['A156'] = 'Arkadi in Radomir''s room.'
	elseif locat['A156'] = 4:
		$npcLocation['A156'] = 'Arkadi in the kitchen.'
	elseif locat['A156'] = 5:
		$npcLocation['A156'] = 'Arkadi in the livingroom.'
	elseif locat['A156'] = 6:
		$npcLocation['A156'] = 'Arkadi in Valentin''s and his room.'
	elseif locat['A156'] = 7:
		$npcLocation['A156'] = 'Arkadi in the bathroom.'
	elseif locat['A156'] = 8: 
		$npcLocation['A156'] = 'Arkadi is in the garage with the band.'
	elseif locat['A156'] = 9:
		$npcLocation['A156'] = 'Arkadi is at work, mechanic Mon-Fri 8 to 17.'
	elseif locat['A156'] = 10:
		$npcLocation['A156'] = 'Arkadi is in the garage working on his bike Mon 17-23.'
	end
end


--- arkadi_fyodorov_schedule ---------------------------------