igor_schedule.qsrc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 igor_DimaNos_day = daystart:
  46. !! Igor is at a date with Dimka wont be availebel whole day.
  47. locat['igor'] = 11
  48. elseif hour < 8:
  49. !!Bedroom - Asleep
  50. locat['igor'] = 1
  51. elseif hour = 8 and minut < 30:
  52. !!Bedroom - Getting Dressed
  53. locat['igor'] = 2
  54. elseif hour < 9:
  55. !!Kitchen - Breakfast
  56. locat['igor'] = 3
  57. elseif hour < 20:
  58. !!At home in his room
  59. locat['igor'] = 7
  60. else
  61. !!At the comunity center disco
  62. locat['igor'] = 8
  63. end
  64. else
  65. if hour < 8:
  66. !!Bedroom - Asleep
  67. locat['igor'] = 1
  68. elseif hour = 8 and minut < 30:
  69. !!Bedroom - Getting Dressed
  70. locat['igor'] = 2
  71. elseif hour < 9:
  72. !!Kitchen - Breakfast
  73. locat['igor'] = 3
  74. elseif hour < 12:
  75. !!At home in his room
  76. locat['igor'] = 7
  77. elseif hour < 15:
  78. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
  79. !!At the lake beach hanging out wiht the other cool kids and the jocks
  80. locat['igor'] = 10
  81. else
  82. !!At home in his room
  83. locat['igor'] = 7
  84. end
  85. elseif hour < 23:
  86. !!At home in his room
  87. locat['igor'] = 7
  88. else
  89. !!In his room with going to bed
  90. locat['igor'] = 9
  91. end
  92. end
  93. else
  94. if week <= 5:
  95. if (hour < 7) or (hour = 7 and minut < 45):
  96. !!Bedroom - Asleep
  97. locat['igor'] = 1
  98. elseif hour < 7:
  99. !!Bedroom - Getting Dressed
  100. locat['igor'] = 2
  101. elseif hour = 8 and minut <= 30:
  102. !!Kitchen - Breakfast
  103. locat['igor'] = 3
  104. elseif hour < 12:
  105. !!At home in his room
  106. locat['igor'] = 7
  107. elseif hour < 15:
  108. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9 and week mod 2 = 0:
  109. !!At the lake beach hanging out wiht the other cool kids and the jocks
  110. locat['igor'] = 10
  111. else
  112. !!At home in his room
  113. locat['igor'] = 7
  114. end
  115. elseif hour < 20:
  116. !!At home in his room
  117. locat['igor'] = 7
  118. elseif hour < 23:
  119. if week = 5:
  120. !!At the comunity center disco
  121. locat['igor'] = 8
  122. else
  123. !!At home in his room
  124. locat['igor'] = 7
  125. end
  126. else
  127. if week = 5:
  128. !!At the comunity center disco
  129. locat['igor'] = 8
  130. else
  131. !!In his room with going to bed
  132. locat['igor'] = 9
  133. end
  134. end
  135. elseif week = 6:
  136. if igor_DimaNos_day = daystart:
  137. !! Igor is at a date with Dimka wont be availebel whole day.
  138. locat['igor'] = 11
  139. elseif hour < 8:
  140. !!Bedroom - Asleep
  141. locat['igor'] = 1
  142. elseif hour = 8 and minut < 30:
  143. !!Bedroom - Getting Dressed
  144. locat['igor'] = 2
  145. elseif hour < 9:
  146. !!Kitchen - Breakfast
  147. locat['igor'] = 3
  148. elseif hour < 12:
  149. !!At home in his room
  150. locat['igor'] = 7
  151. elseif hour < 15:
  152. if temper >= 20 and sunWeather = 1 and month >= 5 and month <= 9:
  153. !!At the lake beach hanging out wiht the other cool kids and the jocks
  154. locat['igor'] = 10
  155. else
  156. !!At home in his room
  157. locat['igor'] = 7
  158. end
  159. elseif hour < 20:
  160. !!At home in his room
  161. locat['igor'] = 7
  162. else
  163. !!At the comunity center disco
  164. locat['igor'] = 8
  165. end
  166. else
  167. if hour < 8:
  168. !!Bedroom - Asleep
  169. locat['igor'] = 1
  170. elseif hour = 8 and minut < 30:
  171. !!Bedroom - Getting Dressed
  172. locat['igor'] = 2
  173. elseif hour < 9:
  174. !!Kitchen - Breakfast
  175. locat['igor'] = 3
  176. elseif hour < 23:
  177. !!At home in his room
  178. locat['igor'] = 7
  179. else
  180. !!In his room going to bed
  181. locat['igor'] = 9
  182. end
  183. end
  184. end
  185. --- igor_schedule ---------------------------------