1
0

radomir_popov_schedule.qsrc 4.3 KB

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