anushka_konstantinov_schedule.qsrc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # anushka_konstantinov_schedule
  2. !! 2023-05-26
  3. !! Her schedule:
  4. !AnushkaLocCity tells us where Anvushka is located
  5. !----------------------------------------------
  6. !locat['A144'] = 0 (Anushka not home Fri and Sat 20:00 for rest of night)
  7. !locat['A144'] = 1 (Anushka in the hallway)
  8. !locat['A144'] = 2 (Anushka in her room)
  9. !locat['A144'] = 3 (Anushka in Radomir''s room)
  10. !locat['A144'] = 4 (Anushka in the kitchen)
  11. !locat['A144'] = 5 (Anushka in the livingroom)
  12. !locat['A144'] = 6 (Anushka in Valentin and Arkadi''s room)
  13. !locat['A144'] = 7 (Anushka in the bathroom)
  14. !locat['A144'] = 8 (Anushka is in the garage with the band Wed 18-23)
  15. !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))
  16. !locat['A144'] = 10 (Anushka is at the University classes 09:00 to 15:00)
  17. !locat['A144'] = 11 (Anushka is at the modeling studio First Sat of each month 8 to 16:00)
  18. !locat['A144'] = 12 (Anushka is at the University Library Mon and Wed from 15:00 till 18:00)
  19. !---------------------------------------------
  20. ! City schedule
  21. ! Standard location is not at home
  22. locat['A144'] = 0
  23. !!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
  24. !! Home is located in her bedroom (2)
  25. ! TODO: randomize the location inside home?
  26. if week = 1:
  27. ! Monday
  28. if hour >= 9 and hour < 15:
  29. ! Need an additional check: is the university open?
  30. locat['A144'] = 10
  31. elseif hour >= 15 and hour < 18:
  32. locat['A144'] = 12
  33. elseif hour >= 18 and hour <= 23:
  34. locat['A144'] = 2
  35. end
  36. elseif week = 2:
  37. if hour >= 9 and hour < 15:
  38. locat['A144'] = 10
  39. elseif hour >= 15 and hour < 18:
  40. locat['A144'] = 2
  41. elseif hour >= 18 and hour <23:
  42. locat['A144'] = 9
  43. end
  44. elseif week = 3:
  45. if hour >= 9 and hour < 15:
  46. locat['A144'] = 10
  47. elseif hour >= 15 and hour < 18:
  48. locat['A144'] = 12
  49. elseif hour >= 18 and hour < 23:
  50. locat['A144'] = 8
  51. end
  52. elseif week = 4:
  53. if hour >= 9 and hour < 15:
  54. locat['A144'] = 10
  55. elseif hour >= 18 and hour <23:
  56. locat['A144'] = 9
  57. end
  58. elseif week = 5:
  59. if hour >= 9 and hour < 15:
  60. locat['A144'] = 10
  61. elseif hour >= 10 and hour <16:
  62. locat['A144'] = 9
  63. elseif hour >= 16 and hour <20:
  64. locat['A144'] = 2
  65. elseif hour >= 20:
  66. locat['A144'] = 0
  67. end
  68. elseif week = 6:
  69. !(first Sat each month from 16:00 till 20:00)
  70. if day <= 7:
  71. if hour >= 8 and hour < 16:
  72. locat['A144'] = 11
  73. elseif hour >= 16 and hour < 20:
  74. locat['A144'] = 2
  75. end
  76. else
  77. if hour <= 8: and hour < 20:
  78. locat['A144'] = 2
  79. elseif hour >= 20:
  80. locat['A144'] = 0
  81. end
  82. end
  83. else
  84. if hour >= 18 and hour <23:
  85. locat['A144'] = 9
  86. end
  87. end
  88. ! Use this in the calendar app on Zveta's phone Loop over an array there that holds NPC IDs she is allowed to see there, and for each ID call this function.
  89. if $ARGS[0] = 'getLocation':
  90. !Set the text for the current NPC ID
  91. if locat['A144'] = 0:
  92. npcLocation['A144'] = 'Anushka not home Fri and Sat 20:00 for rest of night'
  93. elseif locat['A144'] = 1:
  94. npcLocation['A144'] = 'Anushka in the hallway at her city apartment'
  95. elseif locat['A144'] = 2:
  96. npcLocation['A144'] = 'Anushka in her room at her city apartment'
  97. elseif locat['A144'] = 3:
  98. npcLocation['A144'] = 'Anushka in Radomir''s room at her city apartment'
  99. elseif locat['A144'] = 4:
  100. npcLocation['A144'] = 'Anushka in the kitchen at her city apartment'
  101. elseif locat['A144'] = 5:
  102. npcLocation['A144'] = 'Anushka in the livingroom at her city apartment'
  103. elseif locat['A144'] = 6:
  104. npcLocation['A144'] = 'Anushka in Valentin and Arkadi''s room'
  105. elseif locat['A144'] = 7:
  106. npcLocation['A144'] = 'Anushka in the bathroom'
  107. elseif locat['A144'] = 8:
  108. npcLocation['A144'] = 'Anushka is in the garage with the band Wed 18-23'
  109. elseif locat['A144'] = 9:
  110. npcLocation['A144'] = 'Anushka is at her job at the The Coffee Hole'
  111. elseif locat['A144'] = 10:
  112. npcLocation['A144'] = 'Anushka is at the University classes 09:00 to 15:00'
  113. elseif locat['A144'] = 11:
  114. npcLocation['A144'] = 'Anushka is at the modeling studio First Sat of each month 8:00 to 16:00'
  115. elseif locat['A144'] = 12:
  116. npcLocation['A144'] = 'Anushka is at the University Library Mon and Wed from 15:00 till 18:00'
  117. end
  118. end
  119. --- anushka_konstantinov_schedule ---------------------------------