# radomir_popov_schedule
!! 2023-05-26

!! His schedule:
!RadomirLocCity tells us where Radomir is located

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

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

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

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

!! locat['A154'] = 3 An init should set this, bur here we want to preserve the current location.

!! For the moment based on the standard schedule. Should be adjusted to City schedule.
! TODO-DONE. Fix for:
!!Radomir is home Mon-Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, 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['A154'] = 20
		elseif hour < 16:
			locat['A154'] = 23
		elseif hour < 20:
			if week = 3:
				locat['A154'] = 24
			else
				locat['A154'] = 23
			end
		elseif hour < 22:
			if week = 3:
				locat['A154'] = 24
			elseif week = 5:
				locat['A154'] = 25
			else
				locat['A154'] = 23
			end
		else
			if week = 5:
				locat['A154'] = 25
			else
				locat['A154'] = 20
			end
		end
	elseif week = 6:
		if hour < 9:
			locat['A154'] = 20	
		elseif hour < 20:
			locat['A154'] = 23
		else
			locat['A154'] = 25
		end
	else
		if hour < 9:
			locat['A154'] = 20	
		elseif hour < 22:
			locat['A154'] = 23
		else
			locat['A154'] = 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['A154'] = 30
else
	if week = 1:
		if hour >= 8 and hour < 17:
			locat['A154'] = 9
		elseif hour > 18:
			locat['A154'] = 3
		end
	elseif week = 2:
		if hour >= 8 and hour < 17:
			locat['A154'] = 9
		elseif hour > 18:
			locat['A154'] = 3
		end
	elseif week = 3:
		if hour >= 8 and hour < 17:
			locat['A154'] = 9
		elseif hour >= 18 and hour < 23:
			locat['A154'] = 8
		end
	elseif week = 4:
		if hour >= 8 and hour < 17:
			locat['A154'] = 9
		elseif hour > 18:
			locat['A154'] = 3
		end
	elseif week = 5:
		if hour >= 8 and hour < 17:
			locat['A154'] = 9
		elseif hour >= 20:
			locat['A154'] = 0
		end
	elseif week = 6:
		if hour >= 8 and hour <20:
			locat['A154'] = 3
		elseif hour >= 20:
			locat['A154'] = 0
		end
	elseif week = 7:
			locat['A154'] = 3
	end
end

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

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


--- radomir_popov_schedule ---------------------------------