igor_schedule.qsrc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # igor_schedule
  2. !!2022/01/27
  3. locat['igor'] = 0
  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. locat['igor'] = 1
  9. elseif hour < 7:
  10. !!Bedroom - Getting Dressed
  11. locat['igor'] = 2
  12. elseif hour = 7 and minut <= 15:
  13. !!Kitchen - Breakfast
  14. locat['igor'] = 3
  15. elseif hour = 7 and minut < 30:
  16. !!NotHome - Walking to school
  17. locat['igor'] = 4
  18. elseif hour < 14:
  19. !!NotHome - At School
  20. locat['igor'] = 5
  21. elseif hour < 15:
  22. !!NotHome - Hanging out near the school or walking home from school
  23. locat['igor'] = 6
  24. elseif hour < 20:
  25. !!At home in his room
  26. locat['igor'] = 7
  27. elseif hour < 23:
  28. if week = 5:
  29. !!At the comunity center disco
  30. locat['igor'] = 8
  31. else
  32. !!At home in his room
  33. locat['igor'] = 7
  34. end
  35. else
  36. if week = 5:
  37. !!At the comunity center disco
  38. locat['igor'] = 8
  39. else
  40. !!In his room with going to bed
  41. locat['igor'] = 9
  42. end
  43. end
  44. elseif week = 6:
  45. if hour < 8:
  46. !!Bedroom - Asleep
  47. locat['igor'] = 1
  48. elseif hour = 8 and minut < 30:
  49. !!Bedroom - Getting Dressed
  50. locat['igor'] = 2
  51. elseif hour < 9:
  52. !!Kitchen - Breakfast
  53. locat['igor'] = 3
  54. elseif hour < 20:
  55. !!At home in his room
  56. locat['igor'] = 7
  57. else
  58. !!At the comunity center disco
  59. locat['igor'] = 8
  60. end
  61. else
  62. if hour < 8:
  63. !!Bedroom - Asleep
  64. locat['igor'] = 1
  65. elseif hour = 8 and minut < 30:
  66. !!Bedroom - Getting Dressed
  67. locat['igor'] = 2
  68. elseif hour < 9:
  69. !!Kitchen - Breakfast
  70. locat['igor'] = 3
  71. elseif hour < 12:
  72. !!At home in his room
  73. locat['igor'] = 7
  74. elseif hour < 15:
  75. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
  76. !!At the lake beach hanging out wiht the other cool kids and the jocks
  77. locat['igor'] = 10
  78. else
  79. !!At home in his room
  80. locat['igor'] = 7
  81. end
  82. elseif hour < 23:
  83. !!At home in his room
  84. locat['igor'] = 7
  85. else
  86. !!In his room with going to bed
  87. locat['igor'] = 9
  88. end
  89. end
  90. else
  91. if week <= 5:
  92. if (hour < 7) or (hour = 7 and minut < 45):
  93. !!Bedroom - Asleep
  94. locat['igor'] = 1
  95. elseif hour < 7:
  96. !!Bedroom - Getting Dressed
  97. locat['igor'] = 2
  98. elseif hour = 8 and minut <= 30:
  99. !!Kitchen - Breakfast
  100. locat['igor'] = 3
  101. elseif hour < 12:
  102. !!At home in his room
  103. locat['igor'] = 7
  104. elseif hour < 15:
  105. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9 and week mod 2 = 0:
  106. !!At the lake beach hanging out wiht the other cool kids and the jocks
  107. locat['igor'] = 10
  108. else
  109. !!At home in his room
  110. locat['igor'] = 7
  111. end
  112. elseif hour < 20:
  113. !!At home in his room
  114. locat['igor'] = 7
  115. elseif hour < 23:
  116. if week = 5:
  117. !!At the comunity center disco
  118. locat['igor'] = 8
  119. else
  120. !!At home in his room
  121. locat['igor'] = 7
  122. end
  123. else
  124. if week = 5:
  125. !!At the comunity center disco
  126. locat['igor'] = 8
  127. else
  128. !!In his room with going to bed
  129. locat['igor'] = 9
  130. end
  131. end
  132. elseif week = 6:
  133. if hour < 8:
  134. !!Bedroom - Asleep
  135. locat['igor'] = 1
  136. elseif hour = 8 and minut < 30:
  137. !!Bedroom - Getting Dressed
  138. locat['igor'] = 2
  139. elseif hour < 9:
  140. !!Kitchen - Breakfast
  141. locat['igor'] = 3
  142. elseif hour < 12:
  143. !!At home in his room
  144. locat['igor'] = 7
  145. elseif hour < 15:
  146. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
  147. !!At the lake beach hanging out wiht the other cool kids and the jocks
  148. locat['igor'] = 10
  149. else
  150. !!At home in his room
  151. locat['igor'] = 7
  152. end
  153. elseif hour < 20:
  154. !!At home in his room
  155. locat['igor'] = 7
  156. else
  157. !!At the comunity center disco
  158. locat['igor'] = 8
  159. end
  160. else
  161. if hour < 8:
  162. !!Bedroom - Asleep
  163. locat['igor'] = 1
  164. elseif hour = 8 and minut < 30:
  165. !!Bedroom - Getting Dressed
  166. locat['igor'] = 2
  167. elseif hour < 9:
  168. !!Kitchen - Breakfast
  169. locat['igor'] = 3
  170. elseif hour < 23:
  171. !!At home in his room
  172. locat['igor'] = 7
  173. else
  174. !!In his room going to bed
  175. locat['igor'] = 9
  176. end
  177. end
  178. end
  179. --- igor_schedule ---------------------------------