gschool_lessons.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. # gschool_lessons
  2. !2021/05/02
  3. if $ARGS[0] = 'morning':
  4. *clr & cla
  5. $menu_loc = 'gschool_lessons'
  6. $menu_arg = 'morning'
  7. $location_type = 'public_indoors'
  8. killvar '$locclass'
  9. menu_off = 0
  10. if school_check_day ! daystart:
  11. school_check_day = daystart
  12. schoolprogul -= 1
  13. school_lunch = 0
  14. if lernHome = 0: pcs_grades += 2
  15. if lernHome > 0: pcs_grades -= 1
  16. if missing_class > 9:
  17. missing_class -= 9
  18. pcs_grades -= 3
  19. elseif missing_class > 6:
  20. missing_class -= 6
  21. pcs_grades -= 2
  22. end
  23. if pcs_grades > 100: pcs_grades = 100
  24. if pcs_grades < 0: pcs_grades = 0
  25. lernSkill += 1
  26. lernHome += 1
  27. if SchoolSorev = 1: SchoolSorev = 0
  28. gs 'gschool_socialchg', 'test'
  29. end
  30. if $breaktype ! 'first':
  31. if detention_set = 1 and week = 1:
  32. detention_set = 2
  33. '<center><img <<$set_imgh>> src="images/characters/shared/headshots_main/big134.jpg"></center>'
  34. 'The principal is waiting for you in the hall, and with a simple curl of a finger, she summons you to follow her to her office.'
  35. *nl
  36. gs 'gschool_lessons', 'uniform_check'
  37. act 'Follow': gt 'gschool_office', 'principal'
  38. elseif late = 0 and cheerleadingQW['skipped_ev'] + cheerleadingQW['skipped_g_ev'] > 0:
  39. gs 'gschool_cheerleading', 'skipped_ev'
  40. act 'Continue down the hall': gt 'gschool_lessons', 'morning'
  41. elseif grupTipe = 3 and nerd_game['invite_day'] < daystart - week:
  42. gt 'nerd_game_night', 'invite', 'morning'
  43. else
  44. '<center><b><font color="maroon">School Hallway</font></b></center>'
  45. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  46. 'Walking down the halls, you barely notice the poor state of the school anymore, having grown used to it. Approaching your locker, you see several of your classmates who you wave to.'
  47. gs 'gschool_gossip', 'morning'
  48. *nl
  49. gs 'gschool_lessons', 'uniform_check'
  50. gs 'gschool_schedule'
  51. act 'Go to first period': school_period = 0 & gt 'gschool_lessons', 'schedule'
  52. act 'Skip first period': school_period = 1 & gt 'gschool_lessons', 'skip'
  53. act 'Use water cooler': $breaktype = 'first' & gt 'gschool_break', 'watercooler'
  54. act 'Go to the girls restroom': $breaktype = 'first' & gt 'gschool_break', 'girls_restroom'
  55. act 'Go to the boys restroom': $breaktype = 'first' & gt 'gschool_break', 'boys_restroom'
  56. end
  57. else
  58. '<center><b><font color="maroon">School Hallway</font></b></center>'
  59. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  60. 'Walking down the halls, you barely notice the poor state of the school anymore, having grown used to it. Approaching your locker, you see several of your classmates who you wave to.'
  61. act 'Go to first period': school_period = 0 & gt 'gschool_lessons', 'schedule'
  62. act 'Skip first period': school_period = 1 & gt 'gschool_lessons', 'skip'
  63. end
  64. end
  65. if $ARGS[0] = 'uniform_check':
  66. if PCloInhibit <= 10:
  67. grupvalue[3] += 1
  68. grupvalue[5] += 1
  69. grupvalue[1] -= 1
  70. grupvalue[2] -= 1
  71. '<font color="blue">This uniform is very conservative.</font>'
  72. elseif PCloSkirt < 5 and PCloThinness < 5 and PCloBra = 0:
  73. if PCloQuality = 4:
  74. grupvalue[1] += 1
  75. grupvalue[2] += 1
  76. '<font color="blue">This uniform complies with the regulations and is of good quality.</font>'
  77. else
  78. '<font color="blue">This uniform complies with the school regulations on skirt length.</font>'
  79. end
  80. elseif PCloSkirt = 5 and PCloThinness < 5 and PCloBra = 0:
  81. if PCloQuality = 4:
  82. grupvalue[1] += 1
  83. grupvalue[2] += 1
  84. grupvalue[4] += 1
  85. '<font color="blue">This uniform slightly breaches the school regulations on skirt length and is of good quality.</font>'
  86. else
  87. grupvalue[4] += 1
  88. '<font color="blue">This uniform slightly breaches the school regulations on skirt length.</font>'
  89. end
  90. else
  91. grupvalue[1] -= 1
  92. grupvalue[2] -= 1
  93. grupvalue[3] -= 1
  94. grupvalue[5] -= 1
  95. demerit += 5
  96. gs 'fame', 'pav', 'sex', 1
  97. '<font color="red">This uniform makes a mockery of the school uniform regulations.</font>'
  98. end
  99. end
  100. if $ARGS[0] = 'short_break':
  101. killvar '$breaktype'
  102. killvar '$locclass'
  103. menu_off = 1
  104. gs 'stat'
  105. if school_period = 1:
  106. if hour = 6:
  107. minut += 165-minut
  108. elseif hour = 7:
  109. minut += 105-minut
  110. elseif hour = 8 and minut < 45:
  111. minut += 45-minut
  112. elseif hour = 8 and minut < 50:
  113. 'Time to move to next class'
  114. else
  115. school_period = 2
  116. gt 'gschool_lessons', 'short_break'
  117. end
  118. elseif school_period = 2:
  119. if hour = 8:
  120. minut += 95-minut
  121. elseif hour = 9 and minut < 35:
  122. minut += 35-minut
  123. elseif hour = 9 and minut < 55:
  124. 'Time to move to next class'
  125. else
  126. school_period = 4
  127. gt 'gschool_lessons', 'short_break'
  128. end
  129. elseif school_period = 3:
  130. if $ARGS[1] = '':
  131. if hour = 9 and minut < 55:
  132. minut += 55-minut
  133. 'Time to move to next class'
  134. else
  135. school_period = 4
  136. gt 'gschool_lessons', 'short_break'
  137. end
  138. else
  139. if hour = 9 and minut < 46:
  140. minut += 46-minut
  141. end
  142. end
  143. elseif school_period = 4:
  144. if hour = 9:
  145. minut += 100-minut
  146. elseif hour = 10 and minut < 40:
  147. minut += 40-minut
  148. elseif hour = 10 and minut < 45:
  149. 'Time to move to next class'
  150. else
  151. school_period = 5
  152. gt 'gschool_lessons', 'short_break'
  153. end
  154. elseif school_period = 5:
  155. if hour = 10:
  156. minut += 90-minut
  157. elseif hour = 11 and minut < 30:
  158. minut += 30-minut
  159. elseif hour = 12 and minut < 25 and minut > 20:
  160. school_period = 6
  161. gt 'gschool_lessons', 'short_break'
  162. elseif (hour = 12 and minut > 25 ) or hour > 12:
  163. school_period = 6
  164. gt 'gschool_lessons', 'short_break'
  165. end
  166. if NikoVolkovQW = 10 and NikoEv = 12: school_lunch = 1 & school_period = 6 & gt 'NikoDreams', 'Classroom Dream'
  167. elseif school_period = 6:
  168. if $ARGS[1] = '':
  169. if hour = 10:
  170. minut += 145-minut
  171. elseif hour = 11:
  172. minut += 85-minut
  173. elseif hour = 12 and minut < 25:
  174. minut += 25-minut
  175. else
  176. school_period = 7
  177. gt 'gschool_lessons', 'short_break'
  178. end
  179. end
  180. elseif school_period = 7:
  181. if hour = 11:
  182. minut += 130-minut
  183. elseif hour = 12:
  184. minut += 70-minut
  185. elseif hour = 13 and minut < 10:
  186. minut += 10-minut
  187. elseif hour = 13 and minut < 15:
  188. 'Time to move to next class'
  189. else
  190. school_period = 8
  191. gt 'gschool_lessons', 'short_break'
  192. end
  193. elseif school_period = 8:
  194. if hour = 13: minut += 60-minut
  195. end
  196. gs 'stat'
  197. if school_period = 2:
  198. if $ARGS[1] ! 'nopict':
  199. '<center><b><font color="maroon">School Hallway</font></b></center>'
  200. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  201. nl
  202. gs 'gschool_schedule'
  203. end
  204. act 'Time for morning break': gt 'gschool_lessons', 'schedule'
  205. elseif school_period = 5:
  206. if $ARGS[1] ! 'nopict':
  207. '<center><b><font color="maroon">School Hallway</font></b></center>'
  208. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  209. nl
  210. gs 'gschool_schedule'
  211. end
  212. act 'Time for lunch break': gt 'gschool_lessons', 'schedule'
  213. elseif (school_period < 8):
  214. if $ARGS[1] ! 'nopict':
  215. '<center><b><font color="maroon">School Hallway</font></b></center>'
  216. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  217. gs 'gschool_gossip', 'gossip'
  218. nl
  219. gs 'gschool_schedule'
  220. end
  221. if christinaphotos > 4: gt 'gschool_events', 'christinaphotos'
  222. act 'Move to next class': gt 'gschool_lessons', 'schedule'
  223. act 'Skip next class': school_period += 1 & gt 'gschool_lessons', 'skip'
  224. if cheerleadingQW['skipped_ev'] + cheerleadingQW['skipped_g_ev'] > 0:
  225. gs 'gschool_cheerleading', 'skipped_ev'
  226. act 'Continue down the hall': gt 'gschool_lessons', 'short_break'
  227. elseif grupTipe = 3 and nerd_game['invite_day'] < daystart - week:
  228. gt 'nerd_game_night', 'invite', 'short_break'
  229. end
  230. elseif Kuznetsov_punishment = 1:
  231. '<center><b><font color="maroon">School Hallway</font></b></center>'
  232. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<Rand(0,2)>>.jpg"></center>'
  233. act 'Go to Kuznecov''s study': gt 'gschool_lessonsev2','shop_punishment'
  234. act 'Leave the school': gt 'gschool_lessons', 'schedule'
  235. else
  236. gt 'gschool_lessons', 'schedule'
  237. end
  238. end
  239. if $ARGS[0] = 'skip':
  240. *clr & cla
  241. $menu_loc = 'gschool_lessons'
  242. $menu_arg = 'skip'
  243. $location_type = 'public_indoors'
  244. menu_off = 0
  245. killvar '$breaktype'
  246. gs 'stat'
  247. '<center><b><font color="maroon">School Hallway</font></b></center>'
  248. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<rand(0,2)>>.jpg"></center>'
  249. 'You don''t feel like attending all of your classes this morning. Surely no one will miss you if you skip one of your three morning classes.'
  250. act 'Go to girl''s bathroom': missing_class += 1 & gt 'gschool_girls_bathroom', 'start'
  251. act 'Go to boy''s bathroom': missing_class += 1 & gt 'gschool_boys_bathroom', 'start'
  252. !! act 'Go to old school building': gt
  253. end
  254. if $ARGS[0] = 'schedule':
  255. killvar '$breaktype'
  256. gs 'stat'
  257. if school_period = 0:
  258. school_period = 1
  259. if hour >= 8:
  260. if week = 1: gt 'gschool_lessons4', 'math_late'
  261. if week = 2: gt 'gschool_lessons3', 'literature_late'
  262. if week = 3: gt 'gschool_lessons4', 'math_late'
  263. if week = 4: gt 'gschool_lessons3', 'literature_late'
  264. if week = 5: gt 'gschool_lessons4', 'math_late'
  265. else
  266. if hour = 7: minut += 60 - minut
  267. if hour = 6: minut += 120 - minut
  268. if week = 1: gt 'gschool_lessons4', 'math'
  269. if week = 2: gt 'gschool_lessons3', 'literature'
  270. if week = 3: gt 'gschool_lessons4', 'math'
  271. if week = 4: gt 'gschool_lessons3', 'literature'
  272. if week = 5: gt 'gschool_lessons4', 'math'
  273. end
  274. elseif school_period = 1:
  275. school_period = 2
  276. if hour = 8 and minut < 50: minut += 50 - minut
  277. if week = 1: gt 'gschool_lessons1', 'russian'
  278. if week = 2: gt 'gschool_lessons1', 'geography'
  279. if week = 3: gt 'gschool_lessons1', 'russian'
  280. if week = 4: gt 'gschool_lessons1', 'geography'
  281. if week = 5: gt 'gschool_lessons1', 'russian'
  282. elseif school_period = 2:
  283. school_period = 3
  284. gt 'gschool_lunch', 'break'
  285. elseif school_period = 3:
  286. school_period = 4
  287. if hour = 9 and minut < 55: minut += 55 - minut
  288. if week = 1: gt 'gschool_lessons4', 'english'
  289. if week = 2: gt 'gschool_lessons2', 'science'
  290. if week = 3: gt 'gschool_lessons2', 'biology'
  291. if week = 4: gt 'gschool_lessons2', 'science'
  292. if week = 5: gt 'gschool_lessons4', 'english'
  293. elseif school_period = 4:
  294. school_period = 5
  295. if hour = 10 and minut < 45: minut += 45 - minut
  296. if week = 1: gt 'gschool_lessons3', 'art'
  297. if week = 2: gt 'gschool_lessons3', 'shop'
  298. if week = 3: gt 'gschool_lessons1', 'history'
  299. if week = 4: gt 'gschool_lessons3', 'shop'
  300. if week = 5: gt 'gschool_lessons3', 'art'
  301. elseif school_period = 5:
  302. school_period = 6
  303. gt 'gschool_lunch', 'lunch'
  304. elseif school_period = 6:
  305. school_period = 7
  306. if hour = 12 and minut < 25: minut += 25 - minut
  307. if week = 1: gt 'gschool_lessons2', 'biology'
  308. if week = 2: gt 'gschool_lessons2', 'computer'
  309. if week = 3: gt 'gschool_lessons2', 'computer'
  310. if week = 4: gt 'gschool_lessons2', 'computer'
  311. if week = 5: gt 'gschool_lessons1', 'history'
  312. elseif school_period = 7:
  313. school_period = 8
  314. if hour = 13 and minut < 15: minut += 15 - minut
  315. if week = 1: gt 'gschool_lessons4', 'pe'
  316. if week = 2: gt 'gschool_lessons2', 'music'
  317. if week = 3: gt 'gschool_lessons4', 'pe'
  318. if week = 4: gt 'gschool_lessons2', 'music'
  319. if week = 5: gt 'gschool_lessons4', 'pe'
  320. else
  321. school_period = 0
  322. gt 'gschool_grounds', 'main'
  323. end
  324. end
  325. --- gschool_lessons ---------------------------------