123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- # lariska_schedule
- lariloc = 0
- !! lariloc['athome'] = 1 means Lariska is not only home, but available to answer the door if you knock
- if SchoolAtestat = 0 and kanikuli = 0:
- if week <= 5:
- if (hour < 6) or (hour = 6 and minut < 45):
- !!Bedroom - Asleep
- lariloc = 1
- lariloc['athome'] = 0
- elseif hour < 7:
- !!Bedroom - Getting Dressed
- lariloc = 2
- lariloc['athome'] = 1
- elseif hour = 7 and minut < 15:
- !!Kitchen - Breakfast
- lariloc = 3
- lariloc['athome'] = 1
- elseif hour = 7 and minut < 30:
- !!NotHome - Walking to school
- lariloc = 4
- lariloc['athome'] = 0
- elseif hour < 14:
- !!NotHome - At School
- lariloc = 5
- lariloc['athome'] = 0
- elseif hour < 16:
- if (week = 2 or week = 4) and (month >= 10 or month <= 5):
- !!NotHome - Cheerleader Practice
- lariloc = 6
- lariloc['athome'] = 0
- elseif week = 5 and odd_week = 1 and (month >= 10 or month <= 5):
- !!NotHome - Game Night
- lariloc = 7
- lariloc['athome'] = 0
- else
- if lernHome ! 0:
- !!Bedroom - Homework
- lariloc = 8
- lariloc['athome'] = 1
- else
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- end
- end
- elseif hour < 18:
- if cheerleaders_on = 1:
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- else
- !!NotHome - Community Center
- lariloc = 9
- lariloc['athome'] = 0
- end
- elseif hour = 18 and minut < 30:
- !!Kitchen - Cooking Dinner
- lariloc = 11
- lariloc['athome'] = 1
- elseif hour < 19:
- !!Kitchen - Eating Dinner
- lariloc = 12
- lariloc['athome'] = 1
- elseif hour = 19 and minut < 30:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 0
- elseif hour < 21:
- !!Living Room - Watching TV
- lariloc = 14
- lariloc['athome'] = 1
- else
- !!Bedroom - Reading in bed
- lariloc = 15
- lariloc['athome'] = 0
- end
- elseif week = 6:
- if hour < 9:
- !!Bedroom - Asleep
- lariloc = 1
- lariloc['athome'] = 0
- elseif hour = 9 and minut < 15:
- !!Kitchen - Breakfast
- lariloc = 3
- lariloc['athome'] = 1
- elseif (hour < 11) or (hour = 11 and minut < 15):
- !!Living Room - Working Out
- lariloc = 16
- lariloc['athome'] = 1
- elseif hour = 11 and minut < 45:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 1
- elseif hour < 12:
- !!Bedroom - Getting Dressed
- lariloc = 2
- lariloc['athome'] = 1
- elseif (hour < 17) or (hour = 17 and minut < 45):
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- elseif hour = 17 and minut > 45:
- if LariskaQW['volleyball'] = 1:
- !!!!NotHome - Community Center - Volleyball Game
- lariloc = 21
- lariloc['athome'] = 0
- else
- !!Living Room - Watching TV
- lariloc = 14
- lariloc['athome'] = 1
- end
- elseif hour = 22 and minut < 30:
- !!Kitchen - Dinner
- lariloc = 12
- lariloc['athome'] = 1
- elseif hour < 23:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 1
- else
- !!Bedroom - Reading in bed
- lariloc = 15
- lariloc['athome'] = 0
- end
- else
- if hour < 9:
- !!Bedroom - Asleep
- lariloc = 1
- lariloc['athome'] = 0
- elseif hour = 9 and minut < 15:
- !!Kitchen - Breakfast
- lariloc = 3
- lariloc['athome'] = 1
- elseif (hour < 11) or (hour = 11 and minut < 15):
- !!Living Room - Working Out
- lariloc = 16
- lariloc['athome'] = 1
- elseif hour = 11 and minut < 45:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 0
- elseif hour < 12:
- !!Bedroom - Getting Dressed
- lariloc = 2
- lariloc['athome'] = 1
- elseif hour = 12 and minut < 30:
- !!Bedroom - Cleaning
- lariloc = 17
- lariloc['athome'] = 1
- elseif hour < 13:
- !!Living Room - Cleaning
- lariloc = 18
- lariloc['athome'] = 1
- elseif hour = 13 and minut < 30:
- !!Kitchen - Cleaning
- lariloc = 19
- lariloc['athome'] = 1
- elseif hour < 14:
- !!Bathroom - Cleaning
- lariloc = 20
- lariloc['athome'] = 1
- elseif hour < 20:
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- elseif hour < 22:
- !!Living Room - Watching TV
- lariloc = 14
- lariloc['athome'] = 1
- elseif hour = 22 and minut < 30:
- !!Kitchen - Dinner
- lariloc = 13
- lariloc['athome'] = 0
- elseif hour < 23:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 0
- else
- !!Bedroom - Reading in bed
- lariloc = 15
- lariloc['athome'] = 0
- end
- end
- else
- if week <= 6:
- if hour < 9:
- !!Bedroom - Asleep
- lariloc = 1
- lariloc['athome'] = 0
- elseif hour = 9 and minut < 15:
- !!Kitchen - Breakfast
- lariloc = 3
- lariloc['athome'] = 1
- elseif (hour < 11) or (hour = 11 and minut < 15):
- !!Living Room - Working Out
- lariloc = 16
- lariloc['athome'] = 1
- elseif hour = 11 and minut < 45:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 0
- elseif hour < 12:
- !!Bedroom - Getting Dressed
- lariloc = 2
- lariloc['athome'] = 1
- elseif (hour < 17) or (hour = 17 and minut < 45):
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- elseif hour = 17 and minut > 45:
- !!Living Room - Watching TV
- lariloc = 14
- lariloc['athome'] = 1
- elseif hour = 22 and minut < 30:
- !!Kitchen - Dinner
- lariloc = 12
- lariloc['athome'] = 1
- elseif hour < 23:
- !!Bathroom - Shower
- lariloc = 13
- if week = 6:
- !!Anna can answer the door and let you in
- lariloc['athome'] = 1
- else
- !!Anna is not home to answer the door
- lariloc['athome'] = 0
- end
- else
- !!Bedroom - Reading in bed
- lariloc = 15
- lariloc['athome'] = 0
- end
- else
- if hour < 9:
- !!Bedroom - Asleep
- lariloc = 1
- lariloc['athome'] = 0
- elseif hour = 9 and minut < 15:
- !!Kitchen - Breakfast
- lariloc = 3
- lariloc['athome'] = 1
- elseif (hour < 11) or (hour = 11 and minut < 15):
- !!Living Room - Working Out
- lariloc = 16
- lariloc['athome'] = 1
- elseif hour = 11 and minut < 45:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 1
- elseif hour < 12:
- !!Bedroom - Getting Dressed
- lariloc = 2
- lariloc['athome'] = 1
- elseif hour = 12 and minut < 30:
- !!Bedroom - Cleaning
- lariloc = 17
- lariloc['athome'] = 1
- elseif hour < 13:
- !!Living Room - Cleaning
- lariloc = 18
- lariloc['athome'] = 1
- elseif hour = 13 and minut < 30:
- !!Kitchen - Cleaning
- lariloc = 19
- lariloc['athome'] = 1
- elseif hour < 14:
- !!Bathroom - Cleaning
- lariloc = 20
- lariloc['athome'] = 1
- elseif hour < 20:
- !!Bedroom - Hanging Out
- lariloc = 22
- lariloc['athome'] = 1
- elseif hour < 22:
- !!Living Room - Watching TV
- lariloc = 14
- lariloc['athome'] = 1
- elseif hour = 22 and minut < 30:
- !!Kitchen - Dinner
- lariloc = 12
- lariloc['athome'] = 1
- elseif hour < 23:
- !!Bathroom - Shower
- lariloc = 13
- lariloc['athome'] = 1
- else
- !!Bedroom - Reading in bed
- lariloc = 15
- lariloc['athome'] = 0
- end
- end
- end
- --- lariska_schedule ---------------------------------
|