1
0

lariska_schedule.qsrc 6.7 KB

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