gschool_grounds.qsrc 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. # gschool_grounds
  2. !Outside school building
  3. if $ARGS[0] = 'main':
  4. CLOSE ALL
  5. $loc = 'gschool_grounds'
  6. $loc_arg = 'main'
  7. $location_type = 'public_outdoors'
  8. $menu_loc = 'gschool_grounds'
  9. $menu_arg = 'main'
  10. menu_off = 0
  11. killvar '$locclass'
  12. *clr & cla
  13. gs 'stat'
  14. '<center><b><font color="maroon">Outside School</font></b></center>'
  15. if month >= 11 or month <= 3:
  16. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/schoolwinter.jpg"></center>'
  17. else
  18. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool.jpg"></center>'
  19. end
  20. 'Pavlovsk''s only school, where all the local children go for their education. Next to the school is the athletic field and a parking lot for the teachers, with a large grove of trees just beyond them.'
  21. 'Hidden behind these trees is the old school building, which was supposed to be renovated and used for advance classes after the new one was built, but budget cuts meant the project was cancelled and now the old building stands empty and abandoned. It''s a popular spot for students to skip class or hang out outside of school.'
  22. if ((hour = 6 and minut >= 30) or (hour >= 7 and hour < 18)) and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0:
  23. 'With the school open you can go to the <a href="exec: minut += 1 & gt ''gschool_grounds'', ''change_room''">changing rooms</a> by the gym and change your outfit.'
  24. end
  25. if day = nyp_day and month = 12 and StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0:
  26. if hour >= 14 and hour < 17:
  27. 'All of the boys and girls are standing near the school. Everyone did their best to look good today, wearing their nicest clothes. Someone calls out to you. "Hey <<$pcs_nickname>>, are you coming to the New Year''s Eve party or not? You haven''t paid the 1000 <b>₽</b> entry fee yet!"'
  28. if money >= 1000:act 'Go to the party (1,000 <b>₽</b>)':money -= 1000 & gt 'nyp_school', 'start'
  29. end
  30. end
  31. if InvitationToDimkaNYparty = 1 and day = 31 and day = nyp_day: act 'Follow Dimka to the party at his house': killvar 'InvitationToDimkaNYparty' & minut += 30 & gt 'sny', '3'
  32. if hour = 14 and week < 6 and kanikuli = 0:
  33. gs 'gschool_socialchg', 'group_student_rel_change'
  34. if NikoDate_Day ! daystart:
  35. if week = 1 and NikoIntro = 0:
  36. gt 'NikoEv', 'Intro'
  37. elseif NikoVolkovQW = 5 and NikoEv = 6 and NikoDate = 0:
  38. gt 'NikoDates', 'After School'
  39. elseif NikoVolkovQW = 5 and NikoEv = 8 and NikoDate = 0:
  40. gt 'NikoDates', 'After School 2'
  41. elseif NikoVolkovQW = 10 and NikoEv = 22:
  42. gt 'NikoEv2', 'Recovery'
  43. end
  44. end
  45. end
  46. if week < 6 and hour = 14 and kanikuli = 0 and afterschool_day ! daystart:
  47. afterschool_day = daystart
  48. if rand(0,3) = 0:
  49. $eventtype = 'after_school'
  50. gt 'gschool_events', 'break_events'
  51. else
  52. gt 'gschool_events', 'afterschool_events'
  53. end
  54. end
  55. !! Cheerleading tryouts if Sveta decided to attend
  56. if hour = 14 and cheerleadingQW['quest_stage'] = 1:
  57. if pregtime < 90: gt 'gschool_cheerleading', 'tryouts'
  58. !! Sveta attends training after school every Tuesday and Thursday.
  59. elseif hour = 14 and cheerleadingQW['day'] ! daystart and (week = 2 or week = 4) and kanikuli = 0 and cheerleadingQW['quest_stage'] > 1:
  60. if npc_pregtalk['A23'] = 0: gt 'gschool_cheerleading', 'afterschool_practice'
  61. !! A football game is played once every 2nd Friday and the cheerleaders perform out on the field.
  62. elseif hour = 14 and cheerleadingQW['day'] ! daystart and week = 5 and (daystart - (daystart mod 7)) mod 2 = 1 and kanikuli = 0 and (cheerleadingQW['quest_stage'] >= 3 or cheerleadingQW['backup_game'] = 1):
  63. if npc_pregtalk['A23'] = 0: gt 'gschool_cheerleading', 'afterschool_game'
  64. end
  65. if hour <= 8 and kanikuli = 6:
  66. 'Today is graduation day! The school prom is tonight as well.'
  67. act 'Go to your graduation':
  68. *clr & cla
  69. menu_off = 1
  70. hour = 10
  71. minut = 0
  72. SchoolAtestat = 1
  73. kanikuli = 7
  74. gs 'stat'
  75. if home_owned[2] = 0:
  76. 'Everyone from your year is assembled in the auditorium of the school. Your teachers are standing on a platform in front of several rows of chairs where you and your classmates are sitting. Some parents and siblings are sitting in the back rows. Nobody from your family showed up.'
  77. else
  78. 'Everyone from your year is assembled in the auditorium of the school. Your teachers are standing on a platform in front of several rows of chairs where you and your classmates are sitting. Some parents and siblings are sitting in the back rows. You turn your head and see your mother and your brother sitting among them.'
  79. end
  80. 'Your Principial begins calling your classmates in alphabetical order. Finally it''s your turn.'
  81. if pcs_grades >= 90:
  82. 'You go up to the podium. As the Principal shakes your hand she announces "As every year I''d like to honor our best student of the year. Miss <<$pcs_lastname>> here performed exceptionally well in her studies and I think that deserves some recognition." She starts applauding and the auditorium quickly joins in.'
  83. if home_owned[2] = 1: 'As you return to your place you see your mother smiling brightly.'
  84. elseif pcs_grades >= 70:
  85. 'You go up to the podium. The Principal shakes your hand and gives you your diploma. "Well done, Miss <<$pcs_lastname>>!" she says before you return to your place.'
  86. else
  87. 'You go up to the podium. The Principal shakes your hand and gives you your diploma and you return to your place.'
  88. end
  89. act 'Return to town': minut += 2 & gt 'pav_residential'
  90. act 'Go to the prom party':
  91. *clr & cla
  92. minut += 540
  93. pcs_energy += 70
  94. gs 'drugs', 'alcohol', 'vodka', rand(2,3)
  95. gs 'clothing', 'strip_all'
  96. gs 'stat'
  97. 'After the ceremony, everyone gets hammered at the prom party. When you wake up, your mouth is dry and you can taste and smell the alcohol on your breath as you feel a headache coming on. Looking around, you see that you''re somewhere in the town center and that you''re completely naked, with twigs and leaves stuck in your hair. You are a little alarmed when you notice that your clothes are missing.'
  98. 'You''re unable to find your clothes, so you cover yourself with your hands and stick to poorly lit areas as you make your way home. You try as hard as you can, but all you can remember are vague flashbacks of skinny dipping in the town fountain with a group of other students.'
  99. act 'Go home': gt 'korrPar'
  100. end
  101. end
  102. exit
  103. end
  104. if SchoolAtestat = -1 and week < 6 and hour >= 6 and hour < 14:
  105. act 'Get your diploma':
  106. *clr & cla
  107. menu_off = 1
  108. minut += 20
  109. SchoolAtestat = 1
  110. kanikuli = 7
  111. gs 'stat'
  112. if pcs_grades >= 70:
  113. 'The Principal hands you your diploma. "Well done, Miss <<$pcs_lastname>>! Good luck in your future!" she says as she shakes your hand.'
  114. else
  115. 'The Principal hands you your diploma. "Good luck in your future!" she says as she shakes your hand.'
  116. end
  117. act 'Return to town': minut += 2 & gt 'pav_residential'
  118. end
  119. end
  120. !! act 'Go to old school building': gt
  121. !! act 'Go to the Principals Office': gt
  122. if week < 6 and hour >= 6 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0 and SchoolBlock = 0:
  123. if PCloStyle2 = 4 or Enable_sforma = 1:
  124. gs 'gschool_socialchg', 'group_student_rel_change_2'
  125. if hour = 6:
  126. if minut < 30:
  127. 'It''s too early for school now.'
  128. else
  129. if NikoEv = 10: gt 'NikoWhore', 'Walk Of Shame'
  130. act 'Wait for class': gt 'gschool_grounds', 'bulding'
  131. end
  132. elseif hour = 7:
  133. if NikoEv = 10:
  134. gt 'NikoWhore', 'Walk Of Shame'
  135. elseif minut <= 45:
  136. act '<b>Go to class</b>': gt 'gschool_grounds', 'bulding'
  137. else
  138. 'You are late for school! You could rush to class or just skip until the second period.'
  139. act '<b>Rush to class</b>':
  140. demerit += 5
  141. gt 'gschool_grounds', 'bulding'
  142. end
  143. act 'Skip class':
  144. *clr & cla
  145. menu_off = 1
  146. '<center><b><font color="maroon">School Hallway</font></b></center>'
  147. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<rand(0,2)>>.jpg"></center>'
  148. 'You don''t feel like attending all of your classes this morning and so make your way to the bathroom.'
  149. act 'Go to girl''s bathroom': gt 'gschool_girls_bathroom', 'start'
  150. act 'Go to boy''s bathroom': gt 'gschool_boys_bathroom', 'start'
  151. end
  152. end
  153. elseif hour = 8:
  154. if NikoEv = 10: gt 'NikoWhore', 'Walk Of Shame'
  155. 'You missed your first class. You hope that no one noticed.'
  156. act '<b>Rush to class</b>': demerit += 10 & gt 'gschool_grounds', 'bulding'
  157. elseif hour < 14:
  158. 'It''s too late for you to attend school now. You have been marked as absent today.'
  159. end
  160. else
  161. 'You''re not allowed to attend any classes at school if you''re not wearing your school uniform.'
  162. end
  163. end
  164. act 'Return to town': minut += 2 & gt 'pav_residential'
  165. act 'Go to the sports field': minut += 1 & gt 'gschool_grounds', 'sports'
  166. if joint > 0 and jointhigh = 0: act 'Smoke a joint behind the school building': gs 'drugs', 'joint' & gt $loc, $loc_arg
  167. if week = 6 and hour = 8 and StoryLine > 0 and SchoolAtestat = 0 and detention_set = 1 and SchoolBlock = 0: act 'Go to detention': gt 'gschool_detention', 'start'
  168. if christinaQW['dompath'] = 4: gt 'gschool_grounds', 'KristinaFight'
  169. if week < 6 and hour = 14 and dimaRevenge = 5 and dimaRevChoice = 0:
  170. gt 'dimaRevenge', dimaRevenge
  171. elseif week < 6 and hour = 14 and dimaRevenge = 4 and dimaRevChoice = 1:
  172. gt 'dimaRevenge', dimaRevenge
  173. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 1:
  174. gt 'dimaRevenge', 5, 'before'
  175. elseif week < 6 and hour = 7 and dimaRevenge = 6 and dimaRevChoice = 1:
  176. gt 'dimaRevenge', 6, 'before'
  177. elseif week < 6 and hour = 14 and dimaRevenge = 7 and dimaRevChoice = 1:
  178. gt 'dimaRevenge', dimaRevenge
  179. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 2:
  180. gt 'dimaRevenge', dimaRevenge, 'day4jockbefore'
  181. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 2:
  182. gt 'dimaRevenge', dimaRevenge, 'day5jockbefore'
  183. elseif week < 6 and hour = 14 and dimaRevenge = 6 and dimaRevChoice = 2:
  184. gt 'dimaRevenge', 5, 'day5jockafter'
  185. !elseif week < 6 and hour = 11 and dimaRevenge = 4 and dimaRevChoice = 3:
  186. ! gt 'gschool_lessons', 'short_break'
  187. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 3:
  188. gt 'dimaRevenge', dimaRevenge
  189. elseif week < 6 and hour = 14 and dimaRevenge = 4 and dimaRevChoice = 4:
  190. gt 'dimaRevenge', dimaRevenge, 'after'
  191. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 4:
  192. gt 'dimaRevenge', dimaRevenge, 'before'
  193. elseif week < 6 and hour = 14 and dimaRevenge = 6 and dimaRevChoice = 4:
  194. gt 'dimaRevenge', 5, 'after'
  195. elseif week < 6 and hour = 7 and dimaRevenge = 7 and dimaRevChoice = 4 and dimaRevengedaystart >= daystart:
  196. gt 'dimaRevenge', 6
  197. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 5:
  198. gt 'dimaRevenge', dimaRevenge, 'before'
  199. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 5:
  200. gt 'dimaRevenge', 5
  201. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 6:
  202. gt 'dimaRevenge', dimaRevenge
  203. end
  204. if hour >= 14 and pav_slut >= 250 and SchoolGossip > 0 and afterschoolday ! daystart: gt 'gschool_sex', 'suck'
  205. if week = 1 and kanikuli = 0 and arthakQW = 10 and apmeetday ! daystart and hour >= 14: gt 'artgar'
  206. if hour = 14 and week < 6 and kanikuli = 0:
  207. if ivan_afterschool = 1: act 'Meet Ivan after school': gt 'gschool_sex', 'afterschool'
  208. if Enable_tablemap = 0:
  209. if anushkaFirstvisit = 0 and meet_after_school = 1: '<a href="exec: gt ''anushka'', ''meet_after_school''">Anushka</a> is leaning against a tree just in front of the school.'
  210. if LariskaQW['story'] >= 5 and cheerleaders_on = 0: '<a href="exec:minut += 1 & gt ''LariskaGo''">Lariska</a> impatiently walks back and fourth across the courtyard, as if she''s waiting for someone.'
  211. if JuliaMilLernQW >= 1: '<a href="exec:minut += 1 & gt ''JuliaMilGo''">Julia</a> is sitting out on the courtyard, reading a book.'
  212. if NatbelQW['QWstage'] > 0: '<a href="exec:minut += 1 & gt ''NatBelGo''">Natasha</a> is standing in a corner.'
  213. if artemLernQW >= 1 and artemVitokQW ! 2 and artemblok = 0 and artlie ! 2 and artembrokenheart ! 1: '<a href="exec:minut += 15 & gt ''artem_events'', ''start''">Artem</a> is waiting for you near the school entrance.'
  214. if npc_QW['A231'] = 1 or npc_QW['A231'] = 3 or npc_QW['A231'] >= 5: '<a href="exec:minut += 1 & gt ''AleksandraGo'', ''Start''"><<$npc_firstname[''A231'']>></a> is waiting for you at the end of the school courtyard, listening to music.'
  215. if katjaMeynoldday ! daystart and meynoldQW >= 1: '<a href="exec:minut += 15 & gt ''katjaEv''">Katja</a> is walking across the school courtyard, getting ready to go home.'
  216. if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:
  217. '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka</a> is deep in thought, as he leans against a lamp post.'
  218. elseif DimaRudeQW > 0 and dimarudeday ! daystart and DimaRudeBlock = 0:
  219. if rand(0,4) = 0: gt 'dimaEv', 'after_school'
  220. '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka</a> is deep in thought, as he leans against a lamp post.'
  221. end
  222. if IgorLoverQW > 0 and igorkruglovday ! daystart and IdorBlock = 0: '<a href="exec:minut += 15 & gt ''igorhome'', ''entrance''">Igor</a> is talking to some of his friends on the courtyard.'
  223. if fedorKozlovQW >= 10 and kotovVSkozlov = 1:
  224. 'You can see <a href="exec: gt ''FedorEv'', ''Strela Chat''">Fedor</a> sitting in the corner of the schoolyard by himself.'
  225. elseif fedorKozlovQW >= 10 and fedorkozqw = 2 and FedorLuv < -4:
  226. 'You can see <a href="exec: gt ''FedorEv2'', ''Fedor Breakup''">Fedor</a> standing by himself with a troubled look on his face.'
  227. elseif fedorKozlovQW >= 10:
  228. 'You can see <a href="exec: gt ''FedorEv'', ''Start''">Fedor</a> standing by himself, his backpack around his arm.'
  229. end
  230. if NikoVolkovQW >= 5 and NikoDate = 1 and NikoDate_Day ! daystart or NikoEv = 11:
  231. 'You can see <a href="exec:gt ''NikoEv'', ''Niko Dates''">Nikolai Volkov</a> smoking outside of the school.'
  232. elseif NikoVolkovQW >= 10 and NikoEv >= 17 and NikoEv <= 20 and NikoDate_Day ! daystart:
  233. '<a href="exec:gt ''NikoEv2'', ''Events''">Nikolai</a> is smoking outside of the school.'
  234. end
  235. else
  236. !display friends in table if switch is on.
  237. st_count=0 & $show_table=''
  238. if anushkaFirstvisit = 0 and meet_after_school = 1: gs 'show_table', '<a href="exec: gt ''anushka'', ''meet_after_school''">Anushka Konstantinov</a>', '5'
  239. if LariskaQW['story'] >= 5 and cheerleaders_on = 0: gs 'show_table', '<a href="exec:minut += 1 & gt ''LariskaGo''">Lariska Gruzdev</a>', '5'
  240. if JuliaMilLernQW >= 1: gs 'show_table', '<a href="exec:minut += 1 & gt ''JuliaMilGo''">Julia Milova</a>', '5'
  241. if NatbelQW['QWstage'] > 0: gs 'show_table', '<a href="exec:minut += 1 & gt ''NatBelGo''">Natasha Belova</a>', '5'
  242. if artemLernQW >= 1 and artemVitokQW ! 2 and artemblok = 0 and artlie ! 2 and artembrokenheart ! 1: gs 'show_table', '<a href="exec:minut += 15 & gt ''artem_events'', ''start''">Artem Chebotarev</a>', '5'
  243. if npc_QW['A231'] = 1 or npc_QW['A231'] = 3 or npc_QW['A231'] >= 5: gs 'show_table', '<a href="exec:minut += 1 & gt ''AleksandraGo'', ''Start''"><<$npc_firstname[''A231'']>> <<$npc_lastname[''A231'']>></a>', '5'
  244. if katjaMeynoldday ! daystart and meynoldQW >= 1: gs 'show_table', '<a href="exec:minut += 15 & gt ''katjaEv''">Katja Meynold</a>', '5'
  245. if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:
  246. gs 'show_table', '<a href="exec:minut += 15 & gt ''dimaHome'', ''home''">Dimka Nosov</a>', '5'
  247. elseif DimaRudeQW > 0 and dimarudeday ! daystart and DimaRudeBlock = 0:
  248. if rand(0,4) = 0: gt 'dimaEv', 'after_school'
  249. gs 'show_table', '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka Nosov</a>', '5'
  250. end
  251. if IgorLoverQW > 0 and igorkruglovday ! daystart and IdorBlock = 0: gs 'show_table', '<a href="exec:minut += 15 & gt ''igorhome'', ''entrance''">Igor Kruglov</a>', '5'
  252. if fedorKozlovQW >= 10 and kotovVSkozlov = 1:
  253. gs 'show_table', '<a href="exec: gt ''FedorEv'', ''Strela Chat''">Fedor</a>', '5'
  254. elseif fedorKozlovQW >= 10 and fedorkozqw = 2 and FedorLuv < -4:
  255. gs 'show_table', '<a href="exec: gt ''FedorEv2'', ''Fedor Breakup''">Fedor</a>', '5'
  256. elseif fedorKozlovQW >= 10:
  257. gs 'show_table', '<a href="exec: gt ''FedorEv'', ''Start''">Fedor</a>', '5'
  258. end
  259. if NikoVolkovQW = 5 and NikoDate = 1 and NikoDate_Day ! daystart or NikoEv = 11:
  260. gs 'show_table', '<a href="exec: gt ''NikoEv'', ''Niko Dates''">Nikolai</a>', '5'
  261. elseif NikoVolkovQW = 10 and NikoEv >= 17 and NikoEv <= 20 and NikoDate_Day ! daystart:
  262. gs 'show_table', '<a href="exec: gt ''NikoEv2'', ''Events''">Nikolai</a>', '5'
  263. end
  264. if st_count > 0:
  265. 'Near school yard, you see: '
  266. '<TABLE BORDER=1><<$show_table>></TR></TABLE>'
  267. end
  268. end
  269. if AlbinaQW['albride'] = 0 and AlbinaQW['RideDaystart'] <= daystart and AlbinaQW['Chernov'] > 0:
  270. '<a href="exec:minut += 15 & gt ''albinaRide''">Albina</a> is waiting behind the wheel of an SUV parked near the school.'
  271. end
  272. ! meynold`s events
  273. if hour = 14 and vicky_afterschool ! daystart: gs 'mey_vika_events', 'near_school'
  274. if mey_vika['mey_vika_qw'] = 35 or mey_vika['mey_vika_qw'] = 36 and minut < 45:
  275. act 'Study with Tamara':
  276. if mey_vika['mey_vika_qw'] = 36: gt 'mey_tamara_events', 'rebuke'
  277. gt 'mey_tamara_events', 'learning0'
  278. end
  279. end
  280. end
  281. if strelaDay ! daystart and strelaQW = 1 and hour = 14:
  282. *clr & cla
  283. 'A Mitsubishi Pajero and a BMW drive up to the school gates and strong, muscular guys in leather jackets and tracksuits get out of the cars. They have come to meet Vitek, Dan and Vasily. You watch them talk about something, although you''re not close enough to hear what it''s about. Then you notice Fedor leaving the school, his face swollen and bruised, and he waves at you. "<<$pcs_nickname>>! Come here, you''re my witness!"'
  284. act 'Go and see what he needs': gt 'strela'
  285. end
  286. end
  287. !Outside school sports field
  288. if $ARGS[0] = 'sports':
  289. $loc = 'gschool_grounds'
  290. $location_type = 'public_outdoors'
  291. $loc_arg = 'sports'
  292. $menu_loc = 'gschool_grounds'
  293. $menu_arg = 'sports'
  294. menu_off = 0
  295. killvar '$locclass'
  296. *clr & cla
  297. gs 'stat'
  298. if month > 3 and month < 11:
  299. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/field.jpg"></center>'
  300. else
  301. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/fieldwinter.jpg"></center>'
  302. end
  303. 'There is a football field near the school with a large track circling around it. Students often use the field and track before and after school.'
  304. if week = 5 and hour >= 16 and hour <= 18: 'As you pass by the sports field, you hear lots of cheering and yelling coming from the younger kids on the field. As you approach, you see '+iif(socialchg['tLazar_day'] ! daystart, '<a href="exec: gt ''gschool_socialchg1'', ''tLazar''">Lazar</a>', 'Lazar')+' on the football field showing off his skills.'
  305. if (week = 1 or week = 3) and hour >= 16 and hour <= 18: 'Looking toward what you can barely describe as a running track, you notice '+iif(socialchg['tSvyatoslav_day'] ! daystart, '<a href="exec: gt ''gschool_socialchg1'', ''tSvyatoslav''">Svyatoslav</a>', 'Svyatoslav')+' doing sprints by the football field.'
  306. act 'Leave the sports field': minut += 1 & gt 'gschool_grounds', 'main'
  307. if schoolrunday ! daystart and $clothingworntype = 'danilovich' and $shoeworntype = 'danilovich':
  308. act 'Go for a run (1 hour)':
  309. *clr & cla
  310. menu_off = 1
  311. minut += 60
  312. schoolrunday = daystart
  313. fat -= rand(2, 7)
  314. run_exp += rand(0, 2)
  315. gs 'sweat', 'add', 20
  316. gs 'stat'
  317. if month > 2 and month < 9:
  318. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/runsummer.jpg"></center>'
  319. else
  320. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/runwinter.jpg"></center>'
  321. end
  322. 'You spend an hour running on the track.'
  323. act 'Continue': gt 'gschool_grounds', 'sports'
  324. end
  325. elseif schoolrunday ! daystart and ($clothingworntype ! 'danilovich' or $shoeworntype ! 'danilovich'):
  326. 'You could go for a run here if you were wearing sports clothes and shoes.'
  327. end
  328. if hour >= 9 and hour < 18 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0: 'With the school open, you can go to the <a href="exec: minut += 1 & gt ''gschool_grounds'', ''change_room''">changing rooms</a> by the gym and change your outfit.'
  329. if week = 6 and SchoolSorev = 2 and hour = 10 and SchoolBlock = 0:
  330. *nl
  331. 'Athletic students of your school and other schools in the area have gathered at the athletics track near your school. Everyone is getting ready for the running competition.'
  332. if $clothingworntype = 'danilovich' and $shoeworntype = 'danilovich':
  333. act 'Participate in the 400m sprint event': gt 'gschool_grounds', 'SchoolRun2'
  334. else
  335. 'You need to wear exercise clothes to participate.'
  336. end
  337. end
  338. if week = 6 and SchoolSorev = 1 and hour = 10 and SchoolBlock = 0:
  339. *nl
  340. 'Athletic students of your school and other schools in the area have gathered at the athletics track near your school. Everyone is getting ready for the running competition.'
  341. if $clothingworntype = 'danilovich' and $shoeworntype = 'danilovich':
  342. act 'Participate in the 400m sprint race': gt 'gschool_grounds', 'SchoolRun'
  343. else
  344. 'You need to wear exercise clothes to participate.'
  345. end
  346. end
  347. gs 'family'
  348. ! Giving football preference, since there''s no indoor option for it.
  349. if temper => 15 and sunWeather = 1 and hour > 8 and hour < 12 and week = 6 and fbpickupDay + 14 <= daystart and bbpickupDay ! daystart:
  350. *nl
  351. 'As you pass by the sports field, you notice that most of the jocks have gathered around the <a href="exec: gt ''fbgameout'', ''start''">football field</a>.'
  352. elseif temper => 15 and sunWeather = 1 and hour > 8 and hour < 12 and week = 6 and bbpickupDay + 14 <= daystart and fbpickupDay ! daystart:
  353. *nl
  354. 'As you pass by the sports field, you notice that most of the jocks have gathered around the <a href="exec: gt ''bbgameout'', ''start''">basketball court</a>.'
  355. end
  356. end
  357. !!School building
  358. if $ARGS[0] = 'bulding':
  359. $loc = 'gschool_grounds'
  360. $loc_arg = 'bulding'
  361. $location_type = 'public_indoors'
  362. $menu_loc = 'gschool_grounds'
  363. $menu_arg = 'bulding'
  364. menu_off = 0
  365. gs 'stat'
  366. '<center><b><font color="maroon">Inside School</font></b></center>'
  367. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<rand(0,2)>>.jpg"></center>'
  368. 'The hallways of the school building are painted with a cheap green paint, which you think may be toxic. Budget cuts.'
  369. act 'Continue':
  370. if hour = 8: late = 1
  371. gs 'stat'
  372. BeInSchool += 1
  373. if rand(0,1) = 0:
  374. gt 'gschool_lessons', 'morning'
  375. else
  376. if rand(0,3) = 0:
  377. gt 'gschool_events', 'teacher_greet'
  378. else
  379. $eventtype = 'before_school'
  380. gt 'gschool_events', 'break_events'
  381. end
  382. end
  383. end
  384. act 'Return to town': minut += 2 & gt 'pav_residential'
  385. if dimaRevenge = 1:
  386. menu_off = 1
  387. 'You''re in a good mood today as you enter the school. That changes when Dimka stops you in the hall on the way to class.
  388. "I know what you did, bitch. Did you really thing I wouldn''t figure out it was you that wiped my hard drive?"
  389. Before you can deny anything, he continues: "I don''t even need that video to ruin your life. Just you wait. Soon the whole school will know what a whore you are."
  390. His words fill you with dread as you make your way to class.'
  391. end
  392. if starlets_missed = 1:
  393. menu_off = 1
  394. starlets_missed = 0
  395. starlet_practice_skipped += 1
  396. if starlet_practice_skipped = 1:
  397. gs 'npc_relationship', 'modify', 'A23', -10
  398. 'As you walk down the hallway, you see an annoyed Albina waiting for you, her arms crossed as she glares at you. "Where the fuck were you <<$pcs_nickname>>?! And don''t fucking lie to me!"'
  399. '"Sorry, Albina. I... had a family thing I had to deal with and I didn''t have time to tell you." you meekly reply.'
  400. 'She doesn''t look completely convinced. "Right... Well if you care about your place on the team, then you''ll be at the next training session on time. No excuses."'
  401. 'You nod at her and she gives you a pat on the head before walking away. It looks like you got off lightly this time.'
  402. elseif starlet_practice_skipped = 2:
  403. gs 'npc_relationship', 'modify', 'A23', -20
  404. 'You notice Albina angrily watching you walk down the hallway towards her and she drags you to the side when you reach her.'
  405. '"Skipping training <i>again</i>, <<$pcs_nickname>>?! I thought I told you that you were to be there on time <b>no excuses</b>?! I don''t care about what miserable story you have to defend yourself with. You either commit to the squad or you''re out. This is your final warning <<$pcs_nickname>>, don''t fucking test me!"'
  406. 'You don''t have a chance to speak before she storms off. Maybe it''s best for both of you if you stopped pissing her off?'
  407. else
  408. AlbinaQW['StarletsJoined'] = -1
  409. gs 'npc_relationship', 'set', 'A23', 10
  410. 'You are walking down the hallway and freeze when you clock a furious Albina heading straight for you. You barely have time to react before she grabs your shirt and forcefully slams you into the lockers, silencing the hall as everyone looks at you.'
  411. 'Albina glares directly into your eyes. "ARE YOU DOING THIS TO MOCK ME YOU FUCKING BITCH?! I GAVE YOU ONE. LAST. FUCKING. CHANCE AND YOU THROW IT BACK IN MY FUCKING FACE?!" She tightens her grips as she gets up in your face. "You''re done with the Starlets. If I <i>ever</i> see you anywhere near us, you better hope that I''m in a good fucking mood, bitch!"'
  412. 'She releases you and angrily storms off, shoving other students out of her way. You compose yourself and continue on your way, trying to ignore the stares.'
  413. end
  414. end
  415. if week <= 5 and christinaQW['dompath'] = 6:
  416. menu_off = 1
  417. npc_rel['A18'] = 0
  418. christinaQW['dompath'] = 7
  419. if LariskaHomeIn < 1:LariskaHomeIn = 1
  420. 'Lariska tells you that you crushed Christina''s spirit when you beat her, and that there''s no fight left in her now. It sounds like Coach Pavlovich took your threat seriously too, as she was kicked from both the cheerleading squad and the track team.'
  421. elseif (week = 1 or week = 3 or week = 5) and christinaQW['fight'] = -1 and christinaQW['subpath'] = 3:
  422. menu_off = 1
  423. npc_rel['A18'] = 0
  424. 'Christina approaches you. "Have you recovered from your ass-kicking yet? At least you understand your place now. I''m looking forward to after P.E. class today!"'
  425. '"W-What happens after P.E. class?" you meekly ask.'
  426. 'Without answering, she simply smirks at you and walks away.'
  427. end
  428. end
  429. if $ARGS[0] = 'KristinaFight':
  430. *clr & cla
  431. menu_off = 1
  432. $location_type = 'event_outdoors'
  433. christinaQW['dompath'] = 5
  434. gs 'stat'
  435. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/christina/school/fight.mp4"></video></center>'
  436. 'As you cross the school yard after school, you are surprised by something heavy slamming into your back. Falling to your hands and knees, you look behind you and see Christina, her face contorted with rage. "You fucking bitch! How dare you spread shit about me? I''ll smash your fucking face in!"'
  437. act 'Fight her':
  438. gs 'fight', 'initFight'
  439. gs 'fight_npcdata', 'christina'
  440. gt 'fight', 'start'
  441. end
  442. end
  443. if $ARGS[0] = 'SchoolRun':
  444. $location_type = 'event_outdoors'
  445. *clr & cla
  446. menu_off = 1
  447. minut += 30
  448. gs 'stat'
  449. 'You think you might be able to win, and sign up to participate in the competition. After quickly changing into your running gear you return to the track. The guys are having their race first, and you watch them as you prepare. As expected, Ivan wins. When the guys have finished, it is the girls'' turn.'
  450. act 'Go to the start':
  451. *clr & cla
  452. minut += 30
  453. SchoolSorev = 0
  454. kolsorev += 1
  455. gs 'stat'
  456. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/begsor.jpg"></center>'
  457. 'The 400m sprint event for girls is up next. You take off your jacket and go the starting line, mentally preparing yourself for the race.'
  458. wait 725
  459. 'On your marks...'
  460. wait 725
  461. 'Get set...'
  462. wait 725
  463. 'Go!'
  464. wait 725
  465. begminus = 0
  466. if bmi_calc > 25:
  467. begminus = ((bmi_calc - 25)*4)
  468. elseif bmi_calc < 18:
  469. begminus = ((25 - bmi_calc)*6)
  470. end
  471. begresult = pcs_run - begminus
  472. act 'Run': gs 'gschool_grounds', 'SchoolRun_result'
  473. gs 'willpower', 'skill', 'run_lvl', 'hard'
  474. if will_cost <= pcs_willpwr:
  475. act 'Give it your best (<<will_cost>> Willpower)':
  476. begresult += 10
  477. gs 'willpower', 'pay', 'self'
  478. gs 'gschool_grounds', 'SchoolRun_result'
  479. end
  480. else
  481. act 'Give it your best (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  482. end
  483. end
  484. end
  485. if $ARGS[0] = 'SchoolRun_result':
  486. cla
  487. if begresult < 10:
  488. grupvalue[2] -= 2
  489. 'You barely manage to reach the finish line at all. There''s no point in checking where you finished, you already know you were last by quite a large margin.'
  490. elseif begresult < 15:
  491. grupvalue[2] -= 1
  492. 'You struggle to keep up with the other girls, and finish in last place.'
  493. elseif begresult < 20:
  494. 'You run as fast as you can, but only manage to finish second to last.'
  495. elseif begresult < 25:
  496. 'You run as fast as you can, but only manage to take 6th place.'
  497. elseif begresult < 30:
  498. grupvalue[2] += 1
  499. 'You run as fast as you can, but only manage to take 5th place.'
  500. elseif begresult < 35:
  501. grupvalue[2] += 1
  502. 'You run as fast as you can, but only manage to take 4th place.'
  503. elseif begresult < 45:
  504. grupvalue[2] += 2
  505. 'You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.'
  506. elseif begresult < 50:
  507. grupvalue[2] += 3
  508. 'You run as fast as you can, and manage to take 2nd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on your achievement.'
  509. else
  510. swinbeg += 1
  511. grupvalue[2] += 5
  512. 'You run as fast as you can, and manage to reach the finish line first. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on winning the competition as you walk around with your arms raised in triumph.'
  513. end
  514. run_exp += 1
  515. fat -= 2
  516. if swinbeg = 3 and LocalRun = 0:
  517. LocalRun = 1
  518. if razradbeg < 1:
  519. 'You have won the school running competition three times now and Mr. Pavlovich, the P.E. teacher at your school, announces that your success has not gone unnoticed. He smiles and awards you the third tier sports trophy in running, which you proudly accept and show to everyone.'
  520. razradbeg = 1
  521. else
  522. 'You have won the school running competition three times now and Mr. Pavlovich, the P.E. teacher at your school, smiles and awards you a local competition trophy which you proudly accept and show to everyone.'
  523. end
  524. end
  525. gs 'stat'
  526. act 'Return to town': gt 'gschool_grounds', 'main'
  527. end
  528. if $ARGS[0] = 'SchoolRun2':
  529. $location_type = 'event_outdoors'
  530. *clr & cla
  531. menu_off = 1
  532. minut += 30
  533. gs 'stat'
  534. 'You think you might be able to win, and sign up to participate in the competition. After quickly changing into your running gear you return to the track. The guys are having their race first, and you watch them as you prepare. As expected, Ivan Prokhorov wins. When the guys have finished, it is the girls'' turn.'
  535. if christinaQW['dompath'] >= 6:
  536. if swinbeggor = 0:
  537. 'You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "Good luck, <<$pcs_nickname>>!"'
  538. elseif swinbeggor = 1:
  539. 'You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "I am going to get you this time, <<$pcs_nickname>>!"'
  540. elseif swinbeggor = 2:
  541. 'You find Lina at the starting line with a smile on her face. Seeing you she waves and calls out cheerfully "Not going to get me a third time, <<$pcs_nickname>>!"'
  542. end
  543. else
  544. if swinbeggor = 0:
  545. 'Getting ready at the starting line is Christina, one of the girls in your class. She just scoffs at you. "You''ll never beat me!"'
  546. elseif swinbeggor = 1:
  547. 'Getting ready at the starting line is Christina, one of the girls in your class. She looks at you angrily and says "You beat me once, but never again!"'
  548. elseif swinbeggor = 2:
  549. 'Getting ready at the starting line is Christina, one of the girls in your class. She looks at you with pure hatred. "You again, bitch? You''re going down this time, I promise you!"'
  550. end
  551. end
  552. act 'Go to the start':
  553. *clr & cla
  554. kolsorev += 1
  555. minut += 30
  556. SchoolSorev = 0
  557. gs 'stat'
  558. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/begsor.jpg"></center>'
  559. 'The 400m sprint event for girls is up next. You take off your jacket and go the starting line, mentally preparing yourself for the race.'
  560. wait 725
  561. 'On your marks...'
  562. wait 725
  563. 'Get set...'
  564. wait 725
  565. 'Go!'
  566. wait 725
  567. begminus = 0
  568. if bmi_calc > 25:
  569. begminus = ((bmi_calc - 25)*4)
  570. elseif bmi_calc < 18:
  571. begminus = ((25 - bmi_calc)*6)
  572. end
  573. begresult = pcs_run - begminus
  574. act 'Run': gs 'gschool_grounds', 'SchoolRun2_result'
  575. gs 'willpower', 'skill', 'run_lvl', 'hard'
  576. if will_cost <= pcs_willpwr:
  577. act 'Give it your best (<<will_cost>> Willpower)':
  578. begresult += 10
  579. gs 'willpower', 'pay', 'self'
  580. gs 'gschool_grounds', 'SchoolRun2_result'
  581. end
  582. else
  583. act 'Give it your best (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  584. end
  585. end
  586. end
  587. if $ARGS[0] = 'SchoolRun2_result':
  588. cla
  589. if begresult < 10:
  590. grupvalue[2] -= 2
  591. 'You barely manage to reach the finish line at all. There''s no point in checking where you finished, you already know you were last by quite a large margin.'
  592. elseif begresult < 15:
  593. grupvalue[2] -= 1
  594. 'You struggle to keep up with the other girls, and finish in last place.'
  595. elseif begresult < 20:
  596. 'You run as fast as you can, but only manage to finish second to last.'
  597. elseif begresult < 25:
  598. 'You run as fast as you can, but only manage to take 6th place.'
  599. elseif begresult < 30:
  600. grupvalue[2] += 1
  601. 'You run as fast as you can, but only manage to take 5th place.'
  602. elseif begresult < 35:
  603. grupvalue[2] += 1
  604. 'You run as fast as you can, but only manage to take 4th place.'
  605. elseif begresult < 40:
  606. grupvalue[2] += 2
  607. 'You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.'
  608. elseif begresult < 50:
  609. grupvalue[2] += 3
  610. 'You run as fast as you can, and manage to take 2nd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on your achievement.'
  611. else
  612. swinbeggor += 1
  613. grupvalue[2] += 5
  614. 'You run as fast as you can, and manage to reach the finish line first. Mr. Pavlovich, the P.E. teacher at your school, congratulates you on winning the competition yet again while you walk around with your arms raised in triumph.'
  615. end
  616. run_exp += 1
  617. fat -= 2
  618. if swinbeggor = 3 and LocalRun = 1:
  619. LocalRun = 2
  620. if razradbeg < 2:
  621. 'You have won the competition three more times and Mr. Pavlovich awards you the second tier sports trophy in running.'
  622. razradbeg = 2
  623. else
  624. 'You have won the competition three more times and Mr. Pavlovich awards you another trophy.'
  625. end
  626. if christinaQW['dompath'] >= 6:
  627. npc_rel['A19'] += 5
  628. 'Lina stands at at the finish line, gasping for breath. Even though you beat her again, she flashes you a bright smile in congratulations.'
  629. else
  630. 'Christina stands nearby glaring at you the whole time, her hands balled into fists. She''s seething with rage, realizing she cannot beat you.'
  631. end
  632. elseif swinbeggor = 2 and begresult >= 130:
  633. if christinaQW['dompath'] >= 6:
  634. npc_rel['A19'] += 5
  635. 'Lina stands at at the finish line, gasping for breath. Even though you beat her a second time, she flashes you a bright smile in congratulations.'
  636. else
  637. npc_rel['A18'] -= 10
  638. 'Christina is gasping for breath at the finish line. She was unable to overtake you, and came second again. Christina avoids your gaze, not wanting to look you in the eye.'
  639. end
  640. elseif swinbeggor = 1 and begresult >= 130:
  641. if christinaQW['dompath'] >= 6:
  642. npc_rel['A19'] += 5
  643. 'Lina stands at at the finish line, gasping for breath. Even though you beat her, she flashes you a bright smile in congratulations.'
  644. else
  645. npc_rel['A18'] -= 10
  646. 'Christina is gasping for breath at the finish line. She was unable to overtake you, and came second yet again. You just flash her a toothy grin and continue your victory lap. Through clenched teeth Christina growls at you. "You bitch!"'
  647. end
  648. end
  649. gs 'stat'
  650. act 'Leave': gt 'gschool_grounds', 'main'
  651. end
  652. if $ARGS[0] = 'change_room':
  653. $loc_arg = 'change_room'
  654. $loc = 'gschool_grounds'
  655. $location_type = 'bathroom'
  656. $locclass = 'lockeroom'
  657. $locM = 'gschool_grounds'
  658. $locM_arg = 'change_room'
  659. $menu_loc = 'gschool_grounds'
  660. $menu_arg = 'change_room'
  661. menu_off = 0
  662. *clr & cla
  663. gs 'stat'
  664. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/gym/lockerroom.jpg"></center>'
  665. act 'Leave':
  666. if $clothingworntype = 'nude':
  667. msg'<b><font color = red>You need to get dressed first!</font></b>'
  668. gt 'gschool_grounds', 'change_room'
  669. else
  670. minut += 1
  671. gt 'gschool_grounds', 'main'
  672. end
  673. end
  674. act 'Go to the sports field':
  675. if $clothingworntype = 'nude':
  676. msg'<b><font color = red>You need to get dressed first!</font></b>'
  677. gt 'gschool_grounds', 'change_room'
  678. else
  679. minut += 1
  680. gt 'gschool_grounds', 'sports'
  681. end
  682. end
  683. *nl
  684. 'The locker room is accessed through the school gym, and is left unlocked until 18:30 each day for the use of students using the sports ground for training and events outside school hours. The room is cold, damp and filled with lockers, benches and not much else. You can <a href="exec: gt ''wardrobe'', ''start''">change your outfit</a> by the lockers here'+iif(pirsA + pirsB + pirsC + pirsD + pirsE + pirsF + pirsN + pirsG + pirsGL > 0, ', and <a href="exec:dynamic $pirManage">manage your piercings</a>', '.')+''
  685. *nl
  686. 'You can access your <a href="exec: quick_dress = 1 & gt ''wardrobe'', ''default''">default clothing</a> options directly.'
  687. if (hour = 18 and minut >= 30) or hour > 18:
  688. 'The school is closing for the night and you have to leave before you get locked in.'
  689. exit
  690. end
  691. gs 'wardrobe', 'sports_outfit'
  692. act 'Change your outfit':
  693. cla
  694. gt 'wardrobe', 'start'
  695. end
  696. dynamic $publicpan
  697. act 'Look in the mirror': gt 'mirror', 'start'
  698. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  699. dynamic $quickwash
  700. dynamic $basin
  701. if shampoo > 0:
  702. dynamic $shower
  703. else
  704. '<font color="red">You''ve run out of shampoo and will have to buy some more before you can wash yourself.</font>'
  705. end
  706. dynamic $tampon
  707. gs 'din_van', 'pblc_pee'
  708. end
  709. --- gschool_grounds ---------------------------------