anushka_konstantinov_schedule.qsrc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # anushka_konstantinov_schedule
  2. !! 2023-05-26
  3. !! Her schedule:
  4. !AnushkaLocCity tells us where Anvushka is located
  5. !! Todo make a text array to hold these values and use like AnushkaLocCityDes[locat['A144']] = String
  6. !----------------------------------------------
  7. !locat['A144'] = 0 (Anushka not home Fri and Sat 20:00 for rest of night)
  8. !locat['A144'] = 1 (Anushka in the hallway)
  9. !locat['A144'] = 2 (Anushka in her room)
  10. !locat['A144'] = 3 (Anushka in Radomir''s room)
  11. !locat['A144'] = 4 (Anushka in the kitchen)
  12. !locat['A144'] = 5 (Anushka in the livingroom)
  13. !locat['A144'] = 6 (Anushka in Valentin and Arkadi''s room)
  14. !locat['A144'] = 7 (Anushka in the bathroom)
  15. !locat['A144'] = 8 (Anushka is in the garage with the band Wed 18-23)
  16. !locat['A144'] = 9 (Anushka is at the Coffee Hole working (week = 2 or week = 4 or week = 7) and hour >= 18) or (week = 5 and hour >= 10 and hour < 16))
  17. !locat['A144'] = 10 (Anushka is at the University classes 09:00 to 15:00)
  18. !locat['A144'] = 11 (Anushka is at the modeling studio First Sat of each month 8 to 16:00)
  19. !locat['A144'] = 12 (Anushka is at the University Library Mon and Wed from 15:00 till 18:00)
  20. !---------------------------------------------
  21. ! City schedule
  22. ! Standard location is not at home which should be set at init
  23. !locat['A144'] = 0
  24. !!Anushka is home Mon from 18:00 for rest of night, Tues and Thurs from 15:00 till 18:00, Fri from 16:00 till 20:00, Sat from 08:00 till 20:00 (first Sat each month from 16:00 till 20:00), Sun from 08:00 till 17:00
  25. !! Home is located in her bedroom (2)
  26. ! TODO: randomize the location inside home?
  27. if week = 1:
  28. ! Monday
  29. if hour >= 9 and hour < 15:
  30. ! Need an additional check: is the university open?
  31. locat['A144'] = 10
  32. elseif hour >= 15 and hour < 18:
  33. locat['A144'] = 12
  34. elseif hour >= 18 and hour <= 23:
  35. locat['A144'] = 2
  36. end
  37. elseif week = 2:
  38. if hour >= 9 and hour < 15:
  39. locat['A144'] = 10
  40. elseif hour >= 15 and hour < 18:
  41. locat['A144'] = 2
  42. elseif hour >= 18 and hour <23:
  43. locat['A144'] = 9
  44. end
  45. elseif week = 3:
  46. if hour >= 9 and hour < 15:
  47. locat['A144'] = 10
  48. elseif hour >= 15 and hour < 18:
  49. locat['A144'] = 12
  50. elseif hour >= 18 and hour < 23:
  51. locat['A144'] = 8
  52. end
  53. elseif week = 4:
  54. if hour >= 9 and hour < 15:
  55. locat['A144'] = 10
  56. elseif hour >= 18 and hour <23:
  57. locat['A144'] = 9
  58. end
  59. elseif week = 5:
  60. if hour >= 9 and hour < 15:
  61. locat['A144'] = 10
  62. elseif hour >= 10 and hour <16:
  63. locat['A144'] = 9
  64. elseif hour >= 16 and hour <20:
  65. locat['A144'] = 2
  66. elseif hour >= 20:
  67. locat['A144'] = 0
  68. end
  69. elseif week = 6:
  70. !(first Sat each month from 16:00 till 20:00)
  71. if day <= 7:
  72. if hour >= 8 and hour < 16:
  73. locat['A144'] = 11
  74. elseif hour >= 16 and hour < 20:
  75. locat['A144'] = 2
  76. end
  77. else
  78. if hour <= 8 and hour < 20:
  79. locat['A144'] = 2
  80. elseif hour >= 20:
  81. locat['A144'] = 0
  82. end
  83. end
  84. else
  85. if hour >= 18 and hour <23:
  86. locat['A144'] = 9
  87. end
  88. end
  89. if locat['A144'] > 0 and locat['A144'] < 8:
  90. $AnushkaLocCity = 'home'
  91. else
  92. $AnushkaLocCity = 'notHome'
  93. end
  94. ! 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.
  95. if $ARGS[0] = 'getLocation':
  96. !Set the text for the current NPC ID
  97. if locat['A144'] = 0:
  98. npcLocation['A144'] = 'Anushka not home Fri and Sat 20:00 for rest of night'
  99. elseif locat['A144'] = 1:
  100. npcLocation['A144'] = 'Anushka in the hallway at her city apartment'
  101. elseif locat['A144'] = 2:
  102. npcLocation['A144'] = 'Anushka in her room at her city apartment'
  103. elseif locat['A144'] = 3:
  104. npcLocation['A144'] = 'Anushka in Radomir''s room at her city apartment'
  105. elseif locat['A144'] = 4:
  106. npcLocation['A144'] = 'Anushka in the kitchen at her city apartment'
  107. elseif locat['A144'] = 5:
  108. npcLocation['A144'] = 'Anushka in the livingroom at her city apartment'
  109. elseif locat['A144'] = 6:
  110. npcLocation['A144'] = 'Anushka in Valentin and Arkadi''s room'
  111. elseif locat['A144'] = 7:
  112. npcLocation['A144'] = 'Anushka in the bathroom'
  113. elseif locat['A144'] = 8:
  114. npcLocation['A144'] = 'Anushka is in the garage with the band Wed 18-23'
  115. elseif locat['A144'] = 9:
  116. npcLocation['A144'] = 'Anushka is at her job at the The Coffee Hole'
  117. elseif locat['A144'] = 10:
  118. npcLocation['A144'] = 'Anushka is at the University classes 09:00 to 15:00'
  119. elseif locat['A144'] = 11:
  120. npcLocation['A144'] = 'Anushka is at the modeling studio First Sat of each month 8:00 to 16:00'
  121. elseif locat['A144'] = 12:
  122. npcLocation['A144'] = 'Anushka is at the University Library Mon and Wed from 15:00 till 18:00'
  123. end
  124. end
  125. !! Get the current description for a journal entry
  126. !! This function will create a text, already formatted, showing the current instruction to progress for this character. That means we can store all scheduling info here and there is no need to edit other files.
  127. if $ARGS[0] = 'journal':
  128. $anushka_konstantinov_schedule_journal = ''
  129. ! City quest
  130. if anushkaCityQW['first_visit'] = 0:
  131. $anushka_konstantinov_schedule_journal & 'You don''t know where she lives but you likely know her as you went to school with her.'
  132. elseif anushkaCityQW['first_visit'] = 1:
  133. $anushka_konstantinov_schedule_journal & 'She told you where her apartment in they city is but you have not been there with her.'
  134. elseif anushkaCityQW['first_visit'] >= 2:
  135. $anushka_konstantinov_schedule_journal & 'You have visited her at her apartment, you should visit her again.'
  136. end
  137. !anushka_konstantinov_schedule_journal & *nl
  138. if anushkaQW['kiss'] <= 5:
  139. $anushka_konstantinov_schedule_journal & 'I think Anushka is really pretty and I would like to be more than just friends with her. Hopefully she will do more if we have done enough kissing.'
  140. elseif anushkaQW['kiss'] > 5:
  141. $anushka_konstantinov_schedule_journal & 'Anushka is really pretty, I think I definitely want to go further than just kissing.'
  142. end
  143. end
  144. --- anushka_konstantinov_schedule ---------------------------------