valentin_bogdanov_schedule.qsrc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. !---------------------------------------------
  19. !! Standard location is his shared own room which should be set at init
  20. !locat['A158'] = 6
  21. ! TODO fix for
  22. !!Valentin is home Tues and Thurs from 18:00 for rest of night, Sat from 08:00 till 20:00, Sun all day
  23. if week = 1:
  24. if hour >= 8 and hour < 17:
  25. locat['A158'] = 9
  26. elseif hour >= 17 and hour < 23:
  27. locat['A158'] = 10
  28. end
  29. elseif week = 2:
  30. if hour >= 8 and hour < 17:
  31. locat['A158'] = 9
  32. elseif hour >= 18:
  33. locat['A158'] = 6
  34. end
  35. elseif week = 3:
  36. if hour >= 8 and hour < 17:
  37. locat['A158'] = 9
  38. elseif hour >= 18 and hour < 23:
  39. locat['A158'] = 8
  40. end
  41. elseif week = 4:
  42. if hour >= 8 and hour < 17:
  43. locat['A158'] = 9
  44. elseif hour >= 18:
  45. locat['A158'] = 6
  46. end
  47. elseif week = 5:
  48. if hour >= 8 and hour < 17:
  49. locat['A158'] = 9
  50. elseif hour >= 20:
  51. locat['A158'] = 0
  52. end
  53. elseif week = 6:
  54. if hour >= 8 and hour < 20:
  55. locat['A158'] = 6
  56. elseif hour >= 20:
  57. locat['A158'] = 0
  58. end
  59. elseif week = 7:
  60. end
  61. if locat['A158'] > 0 and locat['A158'] < 8:
  62. $ValentinLocCity = 'home'
  63. else
  64. $ValentinLocCity = 'notHome'
  65. end
  66. ! 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.
  67. if $ARGS[0] = 'getLocation':
  68. !Set the text for the current NPC ID
  69. if locat['A158'] = 0:
  70. npcLocation['A144'] = 'Valentin not home Fri and Sat 20:00 for rest of night.'
  71. elseif locat['A158'] = 1:
  72. npcLocation['A144'] = 'Valentin in the hallway.'
  73. elseif locat['A158'] = 2:
  74. npcLocation['A144'] = 'Valentin in Anushka''s room.'
  75. elseif locat['A158'] = 3:
  76. npcLocation['A144'] = 'Valentin in Radomir''s room.'
  77. elseif locat['A158'] = 4:
  78. npcLocation['A144'] = 'Valentin in the kitchen.'
  79. elseif locat['A158'] = 5:
  80. npcLocation['A144'] = 'Valentin in the livingroom.'
  81. elseif locat['A158'] = 6:
  82. npcLocation['A144'] = 'Valentin in his and Arkadi''s room.'
  83. elseif locat['A158'] = 7:
  84. npcLocation['A144'] = 'Valentin in the bathroom.'
  85. elseif locat['A158'] = 8:
  86. npcLocation['A144'] = 'Valentin is in the garage with the band.'
  87. elseif locat['A158'] = 9:
  88. npcLocation['A144'] = 'Valentin is at work, mechanic Mon-Fri 8 to 17.'
  89. elseif locat['A158'] = 10:
  90. npcLocation['A144'] = 'Valentin is in the garage working on his bike Mon 17-23.'
  91. end
  92. end
  93. --- valentin_bogdanov_schedule ---------------------------------