lariska_schedule.qsrc 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. # lariska_schedule
  2. !! 2022/06/04 - Alaratt
  3. locat['Lariska'] = 0
  4. locat['Lariska'] = 0
  5. locat['Lari_athome'] = 0
  6. !! locat['Lari_athome'] = 1 means Lariska is not only home, but available to answer the door if you knock
  7. if SchoolAtestat = 0 and kanikuli = 0:
  8. if week <= 5:
  9. if (hour < 6) or (hour = 6 and minut < 45):
  10. !!Bedroom - Asleep
  11. locat['Lariska'] = 1
  12. locat['Lari_athome'] = 0
  13. elseif hour < 7:
  14. !!Bedroom - Getting Dressed
  15. locat['Lariska'] = 2
  16. locat['Lari_athome'] = 1
  17. elseif hour = 7 and minut <= 15:
  18. !!Kitchen - Breakfast
  19. locat['Lariska'] = 3
  20. locat['Lari_athome'] = 1
  21. elseif hour = 7 and minut < 30:
  22. !!NotHome - Walking to school
  23. locat['Lariska'] = 4
  24. locat['Lari_athome'] = 0
  25. elseif hour < 14:
  26. !!NotHome - At School
  27. locat['Lariska'] = 5
  28. locat['Lari_athome'] = 0
  29. elseif hour < 16:
  30. if (week = 2 or week = 4) and (month >= 10 or month <= 5):
  31. !!NotHome - Cheerleader Practice
  32. locat['Lariska'] = 6
  33. locat['Lari_athome'] = 0
  34. elseif week = 5 and odd_week = 1 and (month >= 10 or month <= 5):
  35. !!NotHome - Game Night
  36. locat['Lariska'] = 7
  37. locat['Lari_athome'] = 0
  38. else
  39. if lernHome > 0:
  40. !!Bedroom - Homework
  41. locat['Lariska'] = 8
  42. locat['Lari_athome'] = 1
  43. else
  44. !!Bedroom - Hanging Out
  45. locat['Lariska'] = 22
  46. locat['Lari_athome'] = 1
  47. end
  48. end
  49. elseif hour < 18:
  50. if cheerleaders_on = 1:
  51. !!Bedroom - Hanging Out
  52. locat['Lariska'] = 22
  53. locat['Lari_athome'] = 1
  54. else
  55. !!NotHome - Community Center
  56. locat['Lariska'] = 9
  57. locat['Lari_athome'] = 0
  58. end
  59. elseif hour = 18 and minut < 30:
  60. !!Kitchen - Cooking Dinner
  61. locat['Lariska'] = 11
  62. locat['Lari_athome'] = 1
  63. elseif hour <= 19:
  64. !!Kitchen - Eating Dinner
  65. locat['Lariska'] = 12
  66. locat['Lari_athome'] = 1
  67. elseif hour = 19 and minut <= 30:
  68. !!Bathroom - Shower
  69. locat['Lariska'] = 13
  70. locat['Lari_athome'] = 0
  71. elseif hour < 21:
  72. !!Living Room - Watching TV
  73. locat['Lariska'] = 14
  74. locat['Lari_athome'] = 1
  75. else
  76. !!Bedroom - Reading in bed
  77. locat['Lariska'] = 15
  78. locat['Lari_athome'] = 0
  79. end
  80. elseif week = 6:
  81. if hour < 9:
  82. !!Bedroom - Asleep
  83. locat['Lariska'] = 1
  84. locat['Lari_athome'] = 0
  85. elseif hour = 9 and minut <= 15:
  86. !!Kitchen - Breakfast
  87. locat['Lariska'] = 3
  88. locat['Lari_athome'] = 1
  89. elseif (hour < 11) or (hour = 11 and minut < 15):
  90. !!Living Room - Working Out
  91. locat['Lariska'] = 16
  92. locat['Lari_athome'] = 1
  93. elseif hour = 11 and minut < 45:
  94. !!Bathroom - Shower
  95. locat['Lariska'] = 13
  96. locat['Lari_athome'] = 1
  97. elseif hour < 12:
  98. !!Bedroom - Getting Dressed
  99. locat['Lariska'] = 2
  100. locat['Lari_athome'] = 1
  101. elseif (hour < 17) or (hour = 17 and minut < 45):
  102. !!Bedroom - Hanging Out
  103. locat['Lariska'] = 22
  104. locat['Lari_athome'] = 1
  105. elseif hour = 17 and minut > 45:
  106. if LariskaQW['volleyball'] = 1:
  107. !!!!NotHome - Community Center - Volleyball Game
  108. locat['Lariska'] = 21
  109. locat['Lari_athome'] = 0
  110. else
  111. !!Living Room - Watching TV
  112. locat['Lariska'] = 14
  113. locat['Lari_athome'] = 1
  114. end
  115. elseif hour = 22 and minut <= 30:
  116. !!Kitchen - Dinner
  117. locat['Lariska'] = 12
  118. locat['Lari_athome'] = 1
  119. elseif hour < 23:
  120. !!Bathroom - Shower
  121. locat['Lariska'] = 13
  122. locat['Lari_athome'] = 1
  123. else
  124. !!Bedroom - Reading in bed
  125. locat['Lariska'] = 15
  126. locat['Lari_athome'] = 0
  127. end
  128. else
  129. if hour < 9:
  130. !!Bedroom - Asleep
  131. locat['Lariska'] = 1
  132. locat['Lari_athome'] = 0
  133. elseif hour = 9 and minut <= 15:
  134. !!Kitchen - Breakfast
  135. locat['Lariska'] = 3
  136. locat['Lari_athome'] = 1
  137. elseif (hour < 11) or (hour = 11 and minut < 15):
  138. !!Living Room - Working Out
  139. locat['Lariska'] = 16
  140. locat['Lari_athome'] = 1
  141. elseif hour = 11 and minut < 45:
  142. !!Bathroom - Shower
  143. locat['Lariska'] = 13
  144. locat['Lari_athome'] = 0
  145. elseif hour < 12:
  146. !!Bedroom - Getting Dressed
  147. locat['Lariska'] = 2
  148. locat['Lari_athome'] = 1
  149. elseif hour = 12 and minut < 30:
  150. !!Bedroom - Cleaning
  151. locat['Lariska'] = 17
  152. locat['Lari_athome'] = 1
  153. elseif hour < 13:
  154. !!Living Room - Cleaning
  155. locat['Lariska'] = 18
  156. locat['Lari_athome'] = 1
  157. elseif hour = 13 and minut < 30:
  158. !!Kitchen - Cleaning
  159. locat['Lariska'] = 19
  160. locat['Lari_athome'] = 1
  161. elseif hour < 14:
  162. !!Bathroom - Cleaning
  163. locat['Lariska'] = 20
  164. locat['Lari_athome'] = 1
  165. elseif hour < 20:
  166. !!Bedroom - Hanging Out
  167. locat['Lariska'] = 22
  168. locat['Lari_athome'] = 1
  169. elseif hour < 22:
  170. !!Living Room - Watching TV
  171. locat['Lariska'] = 14
  172. locat['Lari_athome'] = 1
  173. elseif hour = 22 and minut <= 30:
  174. !!Kitchen - Dinner
  175. locat['Lariska'] = 13
  176. locat['Lari_athome'] = 0
  177. elseif hour < 23:
  178. !!Bathroom - Shower
  179. locat['Lariska'] = 13
  180. locat['Lari_athome'] = 0
  181. else
  182. !!Bedroom - Reading in bed
  183. locat['Lariska'] = 15
  184. locat['Lari_athome'] = 0
  185. end
  186. end
  187. else
  188. if week <= 6:
  189. if hour < 9:
  190. !!Bedroom - Asleep
  191. locat['Lariska'] = 1
  192. locat['Lari_athome'] = 0
  193. elseif hour = 9 and minut < 15:
  194. !!Kitchen - Breakfast
  195. locat['Lariska'] = 3
  196. locat['Lari_athome'] = 1
  197. elseif (hour < 11) or (hour = 11 and minut < 15):
  198. !!Living Room - Working Out
  199. locat['Lariska'] = 16
  200. locat['Lari_athome'] = 1
  201. elseif hour = 11 and minut < 45:
  202. !!Bathroom - Shower
  203. locat['Lariska'] = 13
  204. locat['Lari_athome'] = 0
  205. elseif hour < 12:
  206. !!Bedroom - Getting Dressed
  207. locat['Lariska'] = 2
  208. locat['Lari_athome'] = 1
  209. elseif (hour < 17) or (hour = 17 and minut < 45):
  210. !!Bedroom - Hanging Out
  211. locat['Lariska'] = 22
  212. locat['Lari_athome'] = 1
  213. elseif hour < 22:
  214. !!Living Room - Watching TV
  215. locat['Lariska'] = 14
  216. locat['Lari_athome'] = 1
  217. elseif hour = 22 and minut <= 30:
  218. !!Kitchen - Dinner
  219. locat['Lariska'] = 12
  220. locat['Lari_athome'] = 1
  221. elseif hour < 23:
  222. !!Bathroom - Shower
  223. locat['Lariska'] = 13
  224. if week = 6:
  225. !!Anna can answer the door and let you in
  226. locat['Lari_athome'] = 1
  227. else
  228. !!Anna is not home to answer the door
  229. locat['Lari_athome'] = 0
  230. end
  231. else
  232. !!Bedroom - Reading in bed
  233. locat['Lariska'] = 15
  234. locat['Lari_athome'] = 0
  235. end
  236. else
  237. if hour < 9:
  238. !!Bedroom - Asleep
  239. locat['Lariska'] = 1
  240. locat['Lari_athome'] = 0
  241. elseif hour = 9 and minut <= 15:
  242. !!Kitchen - Breakfast
  243. locat['Lariska'] = 3
  244. locat['Lari_athome'] = 1
  245. elseif (hour < 11) or (hour = 11 and minut < 15):
  246. !!Living Room - Working Out
  247. locat['Lariska'] = 16
  248. locat['Lari_athome'] = 1
  249. elseif hour = 11 and minut < 45:
  250. !!Bathroom - Shower
  251. locat['Lariska'] = 13
  252. locat['Lari_athome'] = 1
  253. elseif hour < 12:
  254. !!Bedroom - Getting Dressed
  255. locat['Lariska'] = 2
  256. locat['Lari_athome'] = 1
  257. elseif hour = 12 and minut < 30:
  258. !!Bedroom - Cleaning
  259. locat['Lariska'] = 17
  260. locat['Lari_athome'] = 1
  261. elseif hour < 13:
  262. !!Living Room - Cleaning
  263. locat['Lariska'] = 18
  264. locat['Lari_athome'] = 1
  265. elseif hour = 13 and minut < 30:
  266. !!Kitchen - Cleaning
  267. locat['Lariska'] = 19
  268. locat['Lari_athome'] = 1
  269. elseif hour < 14:
  270. !!Bathroom - Cleaning
  271. locat['Lariska'] = 20
  272. locat['Lari_athome'] = 1
  273. elseif hour < 20:
  274. !!Bedroom - Hanging Out
  275. locat['Lariska'] = 22
  276. locat['Lari_athome'] = 1
  277. elseif hour < 22:
  278. !!Living Room - Watching TV
  279. locat['Lariska'] = 14
  280. locat['Lari_athome'] = 1
  281. elseif hour = 22 and minut <= 30:
  282. !!Kitchen - Dinner
  283. locat['Lariska'] = 12
  284. locat['Lari_athome'] = 1
  285. elseif hour < 23:
  286. !!Bathroom - Shower
  287. locat['Lariska'] = 13
  288. locat['Lari_athome'] = 1
  289. else
  290. !!Bedroom - Reading in bed
  291. locat['Lariska'] = 15
  292. locat['Lari_athome'] = 0
  293. end
  294. end
  295. end
  296. --- lariska_schedule ---------------------------------