valentin_bogdanov_schedule.qsrc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # valentin_bogdanov_schedule
  2. !! 2023-05-26
  3. !! His schedule:
  4. !ValentinLocCity tells us where Valentin is located
  5. !locat['A158']
  6. !----------------------------------------------
  7. !locat['A158'] = 0 (Valentin not home Fri and Sat 20:00 for rest of night)
  8. !locat['A158'] = 1 (Valentin in the hallway)
  9. !locat['A158'] = 2 (Valentin in Anushka''s room)
  10. !locat['A158'] = 3 (Valentin in Radomir''s room)
  11. !locat['A158'] = 4 (Valentin in the kitchen)
  12. !locat['A158'] = 5 (Valentin in the livingroom)
  13. !locat['A158'] = 6 (Valentin in his and Arkadi''s room)
  14. !locat['A158'] = 7 (Valentin in the bathroom)
  15. !locat['A158'] = 8 (Valentin is in the garage with the band Wed 18-23)
  16. !locat['A158'] = 9 (Valentin is at work, mechanic Mon-Fri 8 to 17)
  17. !locat['A158'] = 10 (Valentin is in the garage working on his bike Mon 17-23)
  18. !locat['A158'] = 20 Home, sleeping getting up in the morning and walking to school.
  19. !locat['A158'] = 21 At school.
  20. !locat['A158'] = 23 Out at an unspecified location in Pav.
  21. !locat['A158'] = 24 Practicing with the band in the garage.
  22. !locat['A158'] = 25 At the community center disco.
  23. !locat['A158'] = 30 On tour with the band
  24. !---------------------------------------------
  25. !! Standard location is his shared own room which should be set at init
  26. !locat['A158'] = 6
  27. ! TODO fix for
  28. !!Valentin is home Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day
  29. if yearstart = 1 and (month < 6 or year = 2016):
  30. !! Schedule for the first year of the game until just after school ends
  31. if week < 6:
  32. if hour < 8:
  33. locat['A158'] = 20
  34. elseif hour < 16:
  35. locat['A158'] = 23
  36. elseif hour < 20:
  37. if week = 3:
  38. locat['A158'] = 24
  39. else
  40. locat['A158'] = 23
  41. end
  42. elseif hour < 22:
  43. if week = 3:
  44. locat['A158'] = 24
  45. elseif week = 5:
  46. locat['A158'] = 25
  47. else
  48. locat['A158'] = 23
  49. end
  50. else
  51. if week = 5:
  52. locat['A158'] = 25
  53. else
  54. locat['A158'] = 20
  55. end
  56. end
  57. elseif week = 6:
  58. if hour < 9:
  59. locat['A158'] = 20
  60. elseif hour < 20:
  61. locat['A158'] = 23
  62. else
  63. locat['A158'] = 25
  64. end
  65. else
  66. if hour < 9:
  67. locat['A158'] = 20
  68. elseif hour < 22:
  69. locat['A158'] = 23
  70. else
  71. locat['A158'] = 20
  72. end
  73. end
  74. elseif yearstart = 1 or (yearstart = 2 and month = 8 and day < 10):
  75. !! Schedule for the rest of the first year (and a week of the second) She is on tour with the band.
  76. locat['A158'] = 30
  77. else
  78. if week = 1:
  79. if hour >= 8 and hour < 17:
  80. locat['A158'] = 9
  81. elseif hour >= 17 and hour < 23:
  82. locat['A158'] = 10
  83. end
  84. elseif week = 2:
  85. if hour >= 8 and hour < 17:
  86. locat['A158'] = 9
  87. elseif hour >= 18:
  88. locat['A158'] = 6
  89. end
  90. elseif week = 3:
  91. if hour >= 8 and hour < 17:
  92. locat['A158'] = 9
  93. elseif hour >= 18 and hour < 23:
  94. locat['A158'] = 8
  95. end
  96. elseif week = 4:
  97. if hour >= 8 and hour < 17:
  98. locat['A158'] = 9
  99. elseif hour >= 18:
  100. locat['A158'] = 6
  101. end
  102. elseif week = 5:
  103. if hour >= 8 and hour < 17:
  104. locat['A158'] = 9
  105. elseif hour >= 20:
  106. locat['A158'] = 0
  107. end
  108. elseif week = 6:
  109. if hour >= 8 and hour < 20:
  110. locat['A158'] = 6
  111. elseif hour >= 20:
  112. locat['A158'] = 0
  113. end
  114. elseif week = 7:
  115. end
  116. end
  117. if locat['A158'] > 0 and locat['A158'] < 8:
  118. $ValentinLocCity = 'home'
  119. else
  120. $ValentinLocCity = 'notHome'
  121. end
  122. ! Use this in the calendar app on Sveta''s phone Loop over an array there that holds NPC IDs she is allowed to see there, and for each ID call this function.
  123. if $ARGS[0] = 'getLocation':
  124. !Set the text for the current NPC ID
  125. if locat['A158'] = 0:
  126. $npcLocation['A158'] = 'Valentin not home Fri and Sat 20:00 for rest of night.'
  127. elseif locat['A158'] = 1:
  128. $npcLocation['A158'] = 'Valentin in the hallway.'
  129. elseif locat['A158'] = 2:
  130. $npcLocation['A158'] = 'Valentin in Anushka''s room.'
  131. elseif locat['A158'] = 3:
  132. $npcLocation['A158'] = 'Valentin in Radomir''s room.'
  133. elseif locat['A158'] = 4:
  134. $npcLocation['A158'] = 'Valentin in the kitchen.'
  135. elseif locat['A158'] = 5:
  136. $npcLocation['A158'] = 'Valentin in the livingroom.'
  137. elseif locat['A158'] = 6:
  138. $npcLocation['A158'] = 'Valentin in his and Arkadi''s room.'
  139. elseif locat['A158'] = 7:
  140. $npcLocation['A158'] = 'Valentin in the bathroom.'
  141. elseif locat['A158'] = 8:
  142. $npcLocation['A158'] = 'Valentin is in the garage with the band.'
  143. elseif locat['A158'] = 9:
  144. $npcLocation['A158'] = 'Valentin is at work, mechanic Mon-Fri 8 to 17.'
  145. elseif locat['A158'] = 10:
  146. $npcLocation['A158'] = 'Valentin is in the garage working on his bike Mon 17-23.'
  147. end
  148. end
  149. --- valentin_bogdanov_schedule ---------------------------------