gschool_grounds.qsrc 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. # gschool_grounds
  2. !Outside school building
  3. if $ARGS[0] = 'main':
  4. CLOSE ALL
  5. $loc = 'gschool_grounds'
  6. $metka = 'main'
  7. $location_type = 'public_outdoors'
  8. $menu_loc = 'gschool_grounds'
  9. $menu_arg = 'main'
  10. menu_off = 0
  11. *clr & cla
  12. gs 'stat'
  13. '<center><b><font color="maroon">Outside School</font></b></center>'
  14. if month >= 11 or month <= 3:
  15. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/schoolwinter.jpg"></center>'
  16. else
  17. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool.jpg"></center>'
  18. end
  19. 'Pavlovsk''s only school, all the local children go here for their education. Next to the school is the athletic field, a parking lot for the teachers, just beyond the parking lot is a grove of trees, and past that is the old school building. After the new school was built the old one was supposed to get renovated and used for advance classes but budget cuts meant the project was canceled and now the old school building stands empty. Though many of the kids use it to skip class or as a place to sneak off to drink or have sex.'
  20. if ((hour = 6 and minut >= 30) or (hour >= 7 and hour < 18)) and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0:
  21. '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.'
  22. end
  23. if day = nyp_day and month = 12 and StoryLine = 1 and SchoolAtestat = 0 and SchoolBlock = 0:
  24. if hour >= 14 and hour < 17:
  25. 'All 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 didn''t pay the 1000 <b>₽</b> entry fee yet!"'
  26. if money >= 1000:act 'Go to the party (1,000 <b>₽</b>)':money -= 1000 & gt 'nyp_school', 'start'
  27. end
  28. end
  29. if InvitationToDimkaNYparty = 1 and day = 31 and day = nyp_day: act 'Follow Dimka to the New Year''s party at his home': killvar 'InvitationToDimkaNYparty' & minut += 30 & gt 'sny', '3'
  30. if week < 6 and hour = 14 and kanikuli = 0 and afterschool_day ! daystart:
  31. afterschool_day = daystart
  32. if rand(0,3) = 0:
  33. $eventtype = 'after_school'
  34. gt 'gschool_events', 'break_events'
  35. else
  36. gt 'gschool_events', 'afterschool_events'
  37. end
  38. end
  39. !! Cheerleading tryouts if Sveta decided to attend
  40. if hour = 14 and cheerleadingQW['quest_stage'] = 1:
  41. gt 'gschool_cheerleading', 'tryouts'
  42. !! Sveta attends training after school every Tuesday and Thursday.
  43. elseif hour = 14 and cheerleadingQW['day'] ! daystart and (week = 2 or week = 4) and kanikuli = 0 and cheerleadingQW['quest_stage'] > 1:
  44. gt 'gschool_cheerleading', 'afterschool_practice'
  45. !! A football game is played once every 2nd Friday and the cheerleaders perform out on the field.
  46. 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):
  47. gt 'gschool_cheerleading', 'afterschool_game'
  48. end
  49. if hour <= 8 and kanikuli = 6:
  50. 'Today is graduation day! The school prom is tonight as well.'
  51. act 'Go to your graduation':
  52. *clr & cla
  53. menu_off = 1
  54. hour = 10
  55. minut = 0
  56. SchoolAtestat = 1
  57. kanikuli = 7
  58. gs 'stat'
  59. if home_owned[2] = 0:
  60. '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.'
  61. else
  62. '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.'
  63. end
  64. 'Your Principial begins calling your classmates in alphabetical order. Finally it''s your turn.'
  65. if pcs_grades >= 90:
  66. '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 applaude and the auditorium quickly joins in the applause.'
  67. if home_owned[2] = 1: 'As you return to your place you see your mother smiling brightly.'
  68. elseif pcs_grades >= 70:
  69. '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.'
  70. else
  71. 'You go up to the podium. The Principal shakes your hand and gives you your diploma and you return to your place.'
  72. end
  73. act 'Return to town': minut += 2 & gt 'pavResidential'
  74. act 'Go to the prom party':
  75. *clr & cla
  76. minut += 540
  77. pcs_energy += 70
  78. gs 'drugs', 'alcohol', 'vodka', rand(2,3)
  79. gs 'underwear', 'remove'
  80. gs 'clothing', 'strip'
  81. gs 'stat'
  82. 'After the official graduation, everyone gets hammered at the prom party. You don''t remember much of what happened, only recalling a few flashbacks of going skinny dipping in the town fountain with a group of friends. Your mouth is dry and you can taste beer and what might be a kebab, you are somewhere in the town center, all of your clothes are missing and you are completely naked.'
  83. 'You make your way back home, you think you are discrete and stick to poorly lit areas but you really don''t remember and somehow have bits of someone''s hedge in your hair.'
  84. act 'Go home': gt 'korrPar'
  85. end
  86. end
  87. exit
  88. end
  89. if SchoolAtestat = -1 and week < 6 and hour >= 6 and hour < 14:
  90. act 'Get your diploma':
  91. *clr & cla
  92. menu_off = 1
  93. minut += 20
  94. SchoolAtestat = 1
  95. kanikuli = 7
  96. gs 'stat'
  97. if pcs_grades >= 70:
  98. 'The Principal hands you your diploma. "Well done, Miss <<$pcs_lastname>>! Good luck in your future!" she says as she shakes your hand.'
  99. else
  100. 'The Principal hands you your diploma. "Good luck in your future!" she says as she shakes your hand.'
  101. end
  102. act 'Return to town': minut += 2 & gt 'pavResidential'
  103. end
  104. end
  105. !! act 'Go to old school building': gt
  106. !! act 'Go to the Principals Office': gt
  107. if week < 6 and hour >= 6 and StoryLine > 0 and SchoolAtestat = 0 and kanikuli = 0 and schoolBlock = 0:
  108. if $clothingworntype = 'school' or Enable_sforma = 1:
  109. if hour = 6:
  110. if minut < 30:
  111. 'It''s too early for school now.'
  112. else
  113. if NikoEv = 10: gt 'NikoDates', 'Walk Of Shame'
  114. act 'Wait for class': gt 'gschool_grounds', 'bulding'
  115. end
  116. elseif hour = 7:
  117. if NikoEv = 10:
  118. gt 'NikoDates', 'Walk Of Shame'
  119. elseif minut <= 45:
  120. act '<b>Go to class</b>': gt 'gschool_grounds', 'bulding'
  121. else
  122. 'You are late for school, you could rush to class or just skip until the second period.'
  123. act '<b>Rush to class</b>':
  124. demerit += 5
  125. gt 'gschool_grounds', 'bulding'
  126. end
  127. act 'Skip class':
  128. *clr & cla
  129. menu_off = 1
  130. '<center><b><font color="maroon">School Hallway</font></b></center>'
  131. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<rand(0,2)>>.jpg"></center>'
  132. '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.'
  133. act 'Go to girl''s bathroom': gt 'gschool_girls_bathroom', 'start'
  134. act 'Go to boy''s bathroom': gt 'gschool_boys_bathroom', 'start'
  135. end
  136. end
  137. elseif hour = 8:
  138. if NikoEv = 10: gt 'NikoDates', 'Walk Of Shame'
  139. 'You missed your whole first class, hopefully no one noticed.'
  140. act '<b>Rush to class</b>': demerit += 10 & gt 'gschool_grounds', 'bulding'
  141. elseif hour < 14:
  142. 'It''s too late for school now. You have been marked as absent today.'
  143. end
  144. else
  145. 'You''re not allowed to attend any classes at school if you''re not wearing your school uniform.'
  146. end
  147. end
  148. act 'Return to town': minut += 2 & gt 'pavResidential'
  149. act 'Go to the sports field': minut += 1 & gt 'gschool_grounds', 'sports'
  150. if joint > 0 and jointhigh = 0: act 'Smoke a joint behind the school building': gs 'drugs', 'joint' & gt $loc, $metka
  151. 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'
  152. if zverRageQW = 1: gt 'gschool_grounds', 'KristinaFight'
  153. if week < 6 and hour = 14 and dimaRevenge = 5 and dimaRevChoice = 0:
  154. gt 'dimaRevenge', dimaRevenge
  155. elseif week < 6 and hour = 14 and dimaRevenge = 4 and dimaRevChoice = 1:
  156. gt 'dimaRevenge', dimaRevenge
  157. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 1:
  158. gt 'dimaRevenge', 5, 'before'
  159. elseif week < 6 and hour = 7 and dimaRevenge = 6 and dimaRevChoice = 1:
  160. gt 'dimaRevenge', 6, 'before'
  161. elseif week < 6 and hour = 14 and dimaRevenge = 7 and dimaRevChoice = 1:
  162. gt 'dimaRevenge', dimaRevenge
  163. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 2:
  164. gt 'dimaRevenge', dimaRevenge, 'day4jockbefore'
  165. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 2:
  166. gt 'dimaRevenge', dimaRevenge, 'day5jockbefore'
  167. elseif week < 6 and hour = 14 and dimaRevenge = 6 and dimaRevChoice = 2:
  168. gt 'dimaRevenge', 5, 'day5jockafter'
  169. !elseif week < 6 and hour = 11 and dimaRevenge = 4 and dimaRevChoice = 3:
  170. ! gt 'gschool_lessons', 'short_break'
  171. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 3:
  172. gt 'dimaRevenge', dimaRevenge
  173. elseif week < 6 and hour = 14 and dimaRevenge = 4 and dimaRevChoice = 4:
  174. gt 'dimaRevenge', dimaRevenge, 'after'
  175. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 4:
  176. gt 'dimaRevenge', dimaRevenge, 'before'
  177. elseif week < 6 and hour = 14 and dimaRevenge = 6 and dimaRevChoice = 4:
  178. gt 'dimaRevenge', 5, 'after'
  179. elseif week < 6 and hour = 7 and dimaRevenge = 7 and dimaRevChoice = 4 and dimaRevengedaystart >= daystart:
  180. gt 'dimaRevenge', 6
  181. elseif week < 6 and hour = 7 and dimaRevenge = 5 and dimaRevChoice = 5:
  182. gt 'dimaRevenge', dimaRevenge, 'before'
  183. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 5:
  184. gt 'dimaRevenge', 5
  185. elseif week < 6 and hour = 7 and dimaRevenge = 4 and dimaRevChoice = 6:
  186. gt 'dimaRevenge', dimaRevenge
  187. end
  188. if hour >= 14 and pav_slut >= 125 and SchoolGossip > 0 and afterschoolday ! daystart: gt 'gschool_sex', 'suck'
  189. if week = 1 and kanikuli = 0 and arthakQW = 10 and apmeetday ! daystart and hour >= 14: gt 'artgar'
  190. if hour = 14 and week < 6 and kanikuli = 0:
  191. if NikoDate_Day ! daystart:
  192. if NikoVolkovQW = 5 and NikoEv = 6 and NikoDate = 0:
  193. gt 'NikoDates', 'After School'
  194. elseif NikoVolkovQW = 5 and NikoEv = 8 and NikoDate = 0:
  195. gt 'NikoDates', 'After School 2'
  196. elseif (NikoVolkovQW = 5 and NikoDate = 1) or NikoEv = 11:
  197. 'You can see <a href="exec: gt ''NikoEv'', ''Niko Dates''">Nikolai Volkov</a> smoking outside of the school.'
  198. elseif NikoVolkovQW = 10 and NikoEv >= 17 and NikoEv <= 20:
  199. '<a href="exec: gt ''NikoEv2'', ''Events''">Nikolai Volkov</a> is smoking outside of the school.'
  200. elseif NikoVolkovQW = 10 and NikoEv = 22:
  201. gt 'NikoEv2', 'Recovery'
  202. end
  203. end
  204. if ivan_afterschool = 1: act 'Meet Ivan after school': gt 'gschool_sex', 'afterschool'
  205. if LinaSlut > 0 and rand(1,10) < 3: 'You see Lina, Dan and Vasily leaving the school together.'
  206. if Enable_tablemap = 0:
  207. if anushkaFirstvisit = 0 and meet_after_school = 1: '<a href="exec: gt ''anushka'', ''meet_after_school''">Anushka Konstantinov</a> is leaning against a tree just in front of the school.'
  208. if LariskaHomeIn > 0: '<a href="exec:minut += 1 & gt ''LariskaGo''">Lariska Gruzdev</a> impatiently walks back and fourth across the courtyard, as if she''s waiting for someone.'
  209. if JuliaMilLernQW >= 1: '<a href="exec:minut += 1 & gt ''JuliaMilGo''">Julia Milova</a> is sitting somewhere on the school courtyard, reading a book.'
  210. if NatbelQW['QWstage'] > 0: '<a href="exec:minut += 1 & gt ''NatBelGo''">Natasha Belova</a> is standing in a corner.'
  211. if artemLernQW >= 1 and artemVitokQW ! 2 and artemblok = 0 and artlie ! 2 and artembrokenheart ! 1: '<a href="exec:minut += 15 & gt ''artemEv'', ''start''">Artem Chebotarev</a> is waiting for you near the school entrance.'
  212. 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'']>> <<$npc_lastname[''A231'']>></a> is waiting for you at the end of the school courtyard, listening to music.'
  213. if katjaMeynoldday ! daystart and meynoldQW >= 2: '<a href="exec:minut += 15 & gt ''katjaEv''">Katja Meynold</a> is walking across the school courtyard, getting ready to go home.'
  214. if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:
  215. '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka Nosov</a> is deep in thought, as he leans against a lamp post.'
  216. elseif DimaRudeQW > 0 and dimarudeday ! daystart and DimaRudeBlock = 0:
  217. if rand(0,4) = 0: gt 'dimaEv', 'after_school'
  218. '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka Nosov</a> is deep in thought, as he leans against a lamp post.'
  219. end
  220. if IgorLoverQW > 0 and igorkruglovday ! daystart and IdorBlock = 0: '<a href="exec:minut += 15 & gt ''igorhome'', ''entrance''">Igor Kruglov</a> is talking to some of his friends on the courtyard.'
  221. if fedorKozlovQW >= 10 and kotovVSkozlov = 1:
  222. 'You can see <a href="exec: gt ''FedorEv'', ''Strela Chat''">Fedor</a> sitting in the corner of the schoolyard by himself.'
  223. elseif fedorKozlovQW >= 10 and fedorkozqw = 2 and FedorLuv < -4:
  224. 'You can see <a href="exec: gt ''FedorEv2'', ''Fedor Breakup''">Fedor</a> standing by himself with a troubled look on his face.'
  225. elseif fedorKozlovQW >= 10:
  226. 'You can see <a href="exec: gt ''FedorEv'', ''Start''">Fedor</a> with his backpack around his arm, standing by himself.'
  227. if NikoVolkovQW = 5 and NikoDate = 1 and NikoDate_Day ! daystart or NikoEv = 11 and NikoDate_Day ! daystart:
  228. 'You can see <a href="exec:gt ''NikoEv'', ''Niko Dates''">Nikolai Volkov</a> smoking outside of the school.'
  229. elseif NikoVolkovQW = 10 and NikoEv >= 17 and NikoEv <= 20 and NikoDate_Day ! daystart:
  230. '<a href="exec:gt ''NikoEv2'', ''Events''">Nikolai Volkov</a> is smoking outside of the school.'
  231. end
  232. else
  233. !display friends in table if switch is on.
  234. st_count=0 & $show_table=''
  235. if anushkaFirstvisit = 0 and meet_after_school = 1: gs 'show_table', '<a href="exec: gt ''anushka'', ''meet_after_school''">Anushka Konstantinov</a>', '5'
  236. if LariskaHomeIn > 0: gs 'show_table', '<a href="exec:minut += 1 & gt ''LariskaGo''">Lariska Gruzdev</a>', '5'
  237. if JuliaMilLernQW >= 1: gs 'show_table', '<a href="exec:minut += 1 & gt ''JuliaMilGo''">Julia Milov</a>', '5'
  238. if NatbelQW['QWstage'] > 0: gs 'show_table', '<a href="exec:minut += 1 & gt ''NatBelGo''">Natasha Belova</a>', '5'
  239. if artemLernQW >= 1 and artemVitokQW ! 2 and artemblok = 0: gs 'show_table', '<a href="exec:minut += 15 & gt ''artemEv'', ''start''">Artem Chebotarev</a>', '5'
  240. if katjaMeynoldday ! daystart and meynoldQW >= 2: gs 'show_table', '<a href="exec:minut += 15 & gt ''katjaEv''">Katja Meynold</a>', '5'
  241. if DimaBeHomeOnce = 1 and DimaRudeBlock = 0:
  242. gs 'show_table', '<a href="exec:minut += 15 & gt ''dimaHome'', ''home''">Dimka Nosov</a>', '5'
  243. elseif DimaRudeQW > 0 and dimarudeday ! daystart and DimaRudeBlock = 0:
  244. if rand(0,4) = 0: gt 'dimaEv', 'after_school'
  245. gs 'show_table', '<a href="exec:minut += 15 & gt ''dimaEv'', ''after_school''">Dimka Nosov</a>', '5'
  246. end
  247. if IgorLoverQW > 0 and igorkruglovday ! daystart and IdorBlock = 0: gs 'show_table', '<a href="exec:minut += 15 & gt ''igorhome'', ''entrance''">Igor Kruglov</a>', '5'
  248. if fedorKozlovQW >= 10 and kotovVSkozlov = 1:
  249. gs 'show_table', '<a href="exec: gt ''FedorEv'', ''Strela Chat''">', '5'
  250. elseif fedorKozlovQW >= 10 and fedorkozqw = 2 and FedorLuv < -4:
  251. gs 'show_table', '<a href="exec: gt ''FedorEv2'', ''Fedor Breakup''">', '5'
  252. elseif fedorKozlovQW >= 10:
  253. gs 'show_table', '<a href="exec: gt ''FedorEv'', ''Start''">Fedor</a>', '5'
  254. if NikoVolkovQW = 5 and NikoDate = 1 and NikoDate_Day ! daystart or NikoEv = 11 and NikoDate_Day ! daystart:
  255. gs 'show_table', '<a href="exec: gt ''NikoEv'', ''Niko Dates''">Nikolai</a>', '5'
  256. elseif NikoVolkovQW = 10 and NikoEv >= 17 and NikoEv <= 20 and NikoDate_Day ! daystart:
  257. gs 'show_table', '<a href="exec: gt ''NikoEv2'', ''Events''">Nikolai</a>', '5'
  258. end
  259. 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'
  260. if st_count > 0 :
  261. 'Near school yard, you see: '
  262. '<TABLE BORDER=1><<$show_table>></TR></TABLE>'
  263. end
  264. end
  265. if albinaCarday ! daystart and AlbFrend >= 1 and albrideday ! daystart: '<a href="exec:minut += 15 & gt ''albinaRide''">Albina Barlovskaya</a> is waiting behind the wheel of a large black SUV, parked near the school.'
  266. ! meynold`s events
  267. if hour = 14 and vicky_afterschool ! daystart: gs 'mey_vika_events', 'near_school'
  268. if mey_vika['mey_vika_qw'] = 35 or mey_vika['mey_vika_qw'] = 36 and minut < 45:
  269. act 'Study with Tamara Mikhailovna':
  270. if mey_vika['mey_vika_qw'] = 36: gt 'mey_tamara_events', 'rebuke'
  271. gt 'mey_tamara_events', 'learning0'
  272. end
  273. end
  274. end
  275. if strelaDay ! daystart and strelaQW = 1 and hour = 14:
  276. *clr & cla
  277. 'A Mitsubishi Pajero and a BMW drive up to the school gates. 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, though you''re not close enough to hear what it''s about. Then you notice Fedor Kozlov leaving school, his face all swollen and bruised. Fedor waves his hand at you, "<<$pcs_nickname>>! Come here, you''re my witness!"'
  278. act 'Go and see what Fedor needs': gt 'strela'
  279. end
  280. end
  281. !Outside school sports field
  282. if $ARGS[0] = 'sports':
  283. $loc = 'gschool_grounds'
  284. $location_type = 'public_outdoors'
  285. $metka = 'sports'
  286. $menu_loc = 'gschool_grounds'
  287. $menu_arg = 'sports'
  288. menu_off = 0
  289. *clr & cla
  290. gs 'stat'
  291. if month > 2 and month < 9:
  292. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/field.jpg"></center>'
  293. else
  294. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/fieldwinter.jpg"></center>'
  295. end
  296. 'There is a football field and around it is a track, often before and after school kids use the field and track.'
  297. 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')+' is on the football field showing off his skills.'
  298. 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.'
  299. act 'Leave the sports field': minut += 1 & gt 'gschool_grounds', 'main'
  300. if schoolrunday ! daystart and $clothingworntype = 'exercise' and $shoeworntype = 'trainers':
  301. act 'Go for a run (1 hour)':
  302. *clr & cla
  303. menu_off = 1
  304. minut += 60
  305. schoolrunday = daystart
  306. fat -= rand(2, 7)
  307. run_exp += rand(0, 2)
  308. gs 'sweat', 'add', 20
  309. gs 'stat'
  310. if month > 2 and month < 9:
  311. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school//grounds/runsummer.jpg"></center>'
  312. else
  313. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school//grounds/runwinter.jpg"></center>'
  314. end
  315. 'You spend an hour on the track going for a run.'
  316. act 'Continue': gt 'gschool_grounds', 'sports'
  317. end
  318. elseif schoolrunday ! daystart and ($clothingworntype ! 'exercise' or $shoeworntype ! 'trainers'):
  319. 'You could go for a run here if you were wearing sports clothes and shoes.'
  320. end
  321. 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.'
  322. if week = 6 and schoolSorev = 2 and hour = 10 and SchoolBlock = 0:
  323. *nl
  324. '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.'
  325. if $clothingworntype = 'exercise' and $shoeworntype = 'trainers':
  326. act 'Participate in the 400m sprint event': gt 'gschool_grounds', 'SchoolRun2'
  327. else
  328. 'You need to wear exercise clothes to participate.'
  329. end
  330. end
  331. if week = 6 and schoolSorev = 1 and hour = 10 and SchoolBlock = 0:
  332. *nl
  333. '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.'
  334. if $clothingworntype = 'exercise' and $shoeworntype = 'trainers':
  335. act 'Participate in the 400m sprint race': gt 'gschool_grounds', 'SchoolRun'
  336. else
  337. 'You need to wear exercise clothes to participate.'
  338. end
  339. end
  340. gs 'family'
  341. ! Giving football preference, since there''s no indoor option for it.
  342. if temper => 15 and sunWeather = 1 and hour > 8 and hour < 12 and week = 6 and fbpickupDay + 14 <= daystart and bbpickupDay ! daystart:
  343. *nl
  344. '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>.'
  345. elseif temper => 15 and sunWeather = 1 and hour > 8 and hour < 12 and week = 6 and bbpickupDay + 14 <= daystart and fbpickupDay ! daystart:
  346. *nl
  347. '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>.'
  348. end
  349. end
  350. !!School building
  351. if $ARGS[0] = 'bulding':
  352. $loc = 'gschool_grounds'
  353. $metka = 'bulding'
  354. $location_type = 'public_indoors'
  355. $menu_loc = 'gschool_grounds'
  356. $menu_arg = 'bulding'
  357. menu_off = 0
  358. gs 'stat'
  359. '<center><b><font color="maroon">Inside School</font></b></center>'
  360. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/building/gschool_hall0<<rand(0,2)>>.jpg"></center>'
  361. 'The hallways of the school building are painted with a cheap green paint, which you think may be toxic. Budget cuts.'
  362. act 'Continue':
  363. if hour = 8: late = 1
  364. gs 'stat'
  365. BeInSchool += 1
  366. if rand(0,1) = 0:
  367. gt 'gschool_lessons', 'morning'
  368. else
  369. if rand(0,3) = 0:
  370. gt 'gschool_events', 'teacher_greet'
  371. else
  372. $eventtype = 'before_school'
  373. gt 'gschool_events', 'break_events'
  374. end
  375. end
  376. end
  377. act 'Return to town': minut += 2 & gt 'pavResidential'
  378. if dimaRevenge = 1:
  379. menu_off = 1
  380. '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.
  381. "I know what you did, bitch. Did you really thing I wouldn''t figure out it was you that wiped my harddrive."
  382. 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."
  383. His words fill you with dread as you make your way to class.'
  384. end
  385. if zverSlutQW = 1 and week = 1 and lariskaQwestDay < daystart and lariskaQwestDay ! 0 and zverRageQW = 2:
  386. menu_off = 1
  387. zverSlutQW = 2
  388. if KotovZverHelp ! 1:
  389. $npc_notes['A18'] = 'Ever since your fight, Christina has been avoiding you. She''s been humiliated ever since you told the whole school about how she sucked the P.E. teacher''s dick for a place in the running competition, and beat her up when she tried to fight you. Barely a shade of her former self she stands timidly in a corner, her head still wrapped in gauss. Whenever she opens her mouth, people can see the broken teeth she hasn''t had a chance to get fixed yet.'
  390. if lariskaHelp > 0:
  391. 'Lariska tells you that you crushed Christina''s spirit when she lost that fight to you, and that there''s no fight left in her now. You know better though; Christina is the type of person to hold a grudge, and you expect she''s just biding her time until she finds a good opportunity to get back at you.'
  392. end
  393. else
  394. if LinaSlut > 0:$text_end = ' and Lina'
  395. 'Lariska tells you that Christina will require treatment for several months to fully recover from the beating you gave her, and also that Avelina has been hooking up with Vitek Kotov recently. You suspect this might have something to do with Christina; Lina would do anything for Christina. You feel a knot in your stomach; being on Vitek''s bad side could be really bad for you.'
  396. end
  397. if lariskaHelp > 0:LariskaHomeIn = 1
  398. $npc_notes['A13'] = 'Lariska is an athletic girl with a weak personality: she''s very dependent on other people''s opinions of her. Christina used to control her, but ever since you took care of Christina she has been a lot more lively. She has a spark in her eyes, and is almost always in a good mood. Even though Mikhail Nikolayevich sees a lot of potential in her and offered her a spot on the volleyball team, she''s afraid to go pro.'
  399. elseif zverSlutQW = 0 and week = 1 and lariskaQwestDay < daystart and lariskaQwestDay ! 0 and zverRageQW = 2:
  400. menu_off = 1
  401. $npc_notes['A18'] = 'Christina is a tall and strong girl. She''s one of the best athletes your school has to offer. Her leadership skills, combined with her intelligence and tenacity make her a very serious threat to anyone who would challenge her.'
  402. npc_rel['A18'] = 0
  403. *nl
  404. $npc_notes['A13'] = 'Lariska is an athletic girl with a weak personality: she''s very dependent on other people''s opinions of her. Christina controls her every move, and ever since the fight she has been avoiding you. She seems even more down than usual, and often looks sad. Even though Mikhail Nikolayevich sees a lot of potential in her and offered her a spot on the volleyball team, she''s afraid to go pro.'
  405. if lariskaHelp > 0:
  406. $text_end = ' And don''t you worry, I will take care of your girlfriend Lariska as well. I''ll teach her what happens when she sides against me.'
  407. $npc_notes['A13'] = 'Lariska is an athletic girl with a weak personality: she''s very dependent on other people''s opinions of her. Christina used to control her, but ever since you stood up to Christina she has been a lot more lively. Even though Mikhail Nikolayevich saw a lot of potential in her and offered her a spot on the volleyball team, she''s afraid to go pro. Her close ties with Christina Zvereva have put her in a bad light, and she has now been banned from playing for the volleyball team even if she wanted to.'
  408. end
  409. 'Christina Zvereva approaches you:'
  410. '"What do you want, bitch? Have you recovered from your ass-kicking yet? At least you understand your place now.<<$text_end>>"'
  411. lariskaQwestDay += 99999
  412. end
  413. end
  414. if $ARGS[0] = 'KristinaFight':
  415. *clr & cla
  416. menu_off = 1
  417. zverRageQW = 2
  418. $location_type = 'event_outdoors'
  419. gs 'stat'
  420. '<center><video autoplay loop src="images/characters/pavlovsk/school/girl/christina/school/fight.mp4"></video></center>'
  421. 'As you cross the school yard after school, you are surprised by a powerful kick in your back. You fall to your hands and knees and rub your sore back for a second, before you turn around and see Christina Zvereva, her face contorted with rage. She yells at you, "You fucking bitch! How dare you spread shit about me like that? I''ll break your fucking face!"'
  422. act 'Fight her':
  423. gs 'fight', 'initFight'
  424. gs 'fight_npcdata', 'christina'
  425. gt 'fight', 'start'
  426. end
  427. end
  428. if $ARGS[0] = 'SchoolRun':
  429. $location_type = 'event_outdoors'
  430. *clr & cla
  431. menu_off = 1
  432. minut += 30
  433. gs 'stat'
  434. '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.'
  435. act 'Go to the start':
  436. *clr & cla
  437. minut += 30
  438. schoolSorev = 0
  439. kolsorev += 1
  440. gs 'stat'
  441. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/begsor.jpg"></center>'
  442. '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.'
  443. wait 725
  444. 'On your marks...'
  445. wait 725
  446. 'Get set...'
  447. wait 725
  448. 'Go!'
  449. wait 725
  450. begminus = 0
  451. if bmi_calc > 25:
  452. begminus = ((bmi_calc - 25)*4)
  453. elseif bmi_calc < 18:
  454. begminus = ((25 - bmi_calc)*6)
  455. end
  456. begresult = pcs_run - begminus
  457. act 'Run': gs 'gschool_grounds', 'SchoolRun_result'
  458. gs 'willpower', 'skill', 'run_lvl', 'hard'
  459. if will_cost <= pcs_willpwr:
  460. act 'Give it your best (<<will_cost>> Willpower)':
  461. begresult += 10
  462. gs 'willpower', 'pay', 'self'
  463. gs 'gschool_grounds', 'SchoolRun_result'
  464. end
  465. else
  466. 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>'
  467. end
  468. end
  469. end
  470. if $ARGS[0] = 'SchoolRun_result':
  471. cla
  472. if begresult < 10:
  473. grupvalue[2] -= 2
  474. '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.'
  475. elseif begresult < 15:
  476. grupvalue[2] -= 1
  477. 'You struggle to keep up with the other girls, and finish in last place.'
  478. elseif begresult < 20:
  479. 'You run as fast as you can, but only manage to finish second to last.'
  480. elseif begresult < 25:
  481. 'You run as fast as you can, but only manage to take 6th place.'
  482. elseif begresult < 30:
  483. grupvalue[2] += 1
  484. 'You run as fast as you can, but only manage to take 5th place.'
  485. elseif begresult < 35:
  486. grupvalue[2] += 1
  487. 'You run as fast as you can, but only manage to take 4th place.'
  488. elseif begresult < 45:
  489. grupvalue[2] += 2
  490. 'You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.'
  491. elseif begresult < 50:
  492. grupvalue[2] += 3
  493. '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.'
  494. else
  495. swinbeg += 1
  496. grupvalue[2] += 5
  497. 'You run as fast as you can, and manage to reach the finish line before anyone else. First place! 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.'
  498. end
  499. run_exp += 1
  500. fat -= 2
  501. if swinbeg = 3 and LocalRun = 0:
  502. LocalRun = 1
  503. if razradbeg < 1:
  504. '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.'
  505. razradbeg = 1
  506. else
  507. '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.'
  508. end
  509. end
  510. gs 'stat'
  511. act 'Return to town': gt 'gschool_grounds', 'main'
  512. end
  513. if $ARGS[0] = 'SchoolRun2':
  514. $location_type = 'event_outdoors'
  515. *clr & cla
  516. menu_off = 1
  517. minut += 30
  518. gs 'stat'
  519. '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.'
  520. if swinbeggor = 0:
  521. 'Getting ready at the start is Christina Zvereva, one of the girls in your class. She scoffs at you, "You''ll never beat me!"'
  522. elseif swinbeggor = 1:
  523. 'Getting ready at the start is Christina Zvereva, one of the girls in your class. She looks at you angrily and says, "You beat me once, but never again!"'
  524. elseif swinbeggor = 2:
  525. 'Getting ready at the start is Christina Zvereva, one of the girls in your class. She looks at you with hatred, "You again, bitch? You''re going down this time, I promise you!"'
  526. end
  527. act 'Go to the start':
  528. *clr & cla
  529. kolsorev += 1
  530. minut += 30
  531. schoolSorev = 0
  532. gs 'stat'
  533. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/grounds/begsor.jpg"></center>'
  534. '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.'
  535. wait 725
  536. 'On your marks...'
  537. wait 725
  538. 'Get set...'
  539. wait 725
  540. 'Go!'
  541. wait 725
  542. begminus = 0
  543. if bmi_calc > 25:
  544. begminus = ((bmi_calc - 25)*4)
  545. elseif bmi_calc < 18:
  546. begminus = ((25 - bmi_calc)*6)
  547. end
  548. begresult = pcs_run - begminus
  549. act 'Run': gs 'gschool_grounds', 'SchoolRun2_result'
  550. gs 'willpower', 'skill', 'run_lvl', 'hard'
  551. if will_cost <= pcs_willpwr:
  552. act 'Give it your best (<<will_cost>> Willpower)':
  553. begresult += 10
  554. gs 'willpower', 'pay', 'self'
  555. gs 'gschool_grounds', 'SchoolRun2_result'
  556. end
  557. else
  558. 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>'
  559. end
  560. end
  561. end
  562. if $ARGS[0] = 'SchoolRun2_result':
  563. cla
  564. if begresult < 10:
  565. grupvalue[2] -= 2
  566. '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.'
  567. elseif begresult < 15:
  568. grupvalue[2] -= 1
  569. 'You struggle to keep up with the other girls, and finish in last place.'
  570. elseif begresult < 20:
  571. 'You run as fast as you can, but only manage to finish second to last.'
  572. elseif begresult < 25:
  573. 'You run as fast as you can, but only manage to take 6th place.'
  574. elseif begresult < 30:
  575. grupvalue[2] += 1
  576. 'You run as fast as you can, but only manage to take 5th place.'
  577. elseif begresult < 35:
  578. grupvalue[2] += 1
  579. 'You run as fast as you can, but only manage to take 4th place.'
  580. elseif begresult < 40:
  581. grupvalue[2] += 2
  582. 'You run as fast as you can, and manage to take 3rd place. Mr. Pavlovich, the P.E. teacher at your school, congratulates you.'
  583. elseif begresult < 50:
  584. grupvalue[2] += 3
  585. '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.'
  586. else
  587. swinbeggor += 1
  588. grupvalue[2] += 5
  589. 'You run as fast as you can, and manage to reach the finish line before anyone else. First place! 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.'
  590. end
  591. run_exp += 1
  592. fat -= 2
  593. if swinbeggor = 3 and LocalRun = 1:
  594. LocalRun = 2
  595. npc_rel['A18'] = 0
  596. zverevaQW = 1
  597. if razradbeg < 2:
  598. 'You have won the competition three more times and Mr. Pavlovich awards you the second tier sports trophy in running.'
  599. razradbeg = 2
  600. else
  601. 'You have won the competition three more times and Mr. Pavlovich awards you another trophy.'
  602. end
  603. 'Christina Zvereva stands nearby glaring at you the whole time, her hands balled into fists. She''s seething with rage, realizing she cannot beat you.'
  604. elseif swinbeggor = 2 and begresult >= 130:
  605. npc_rel['A18'] = 0
  606. 'Christina Zvereva 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.'
  607. elseif swinbeggor = 1 and begresult >= 130:
  608. npc_rel['A18'] = 0
  609. 'Christina Zvereva is gasping for breath at the finish line. She was unable to overtake you, and came second yet again. You just flash her a teethy grin and continue your victory lap. Through clenched teeth Christina growls at you, "You bitch!"'
  610. end
  611. gs 'stat'
  612. act 'Leave': gt 'gschool_grounds', 'main'
  613. end
  614. if $ARGS[0] = 'change_room':
  615. $metka = 'change_room'
  616. $loc = 'gschool_grounds'
  617. $location_type = 'bathroom'
  618. $locM = 'gschool_grounds'
  619. $metkaM = 'change_room'
  620. $menu_loc = 'gschool_grounds'
  621. $menu_arg = 'change_room'
  622. menu_off = 0
  623. *clr & cla
  624. gs 'stat'
  625. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/school/gym/lockerroom.jpg"></center>'
  626. act 'Leave the school building':
  627. if $clothingworntype = 'nude':
  628. msg'<b><font color = red>You need to get dressed.</font></b>'
  629. gt 'gschool_grounds', 'change_room'
  630. else
  631. minut += 1
  632. gt 'gschool_grounds', 'main'
  633. end
  634. end
  635. act 'Go to sports field':
  636. if $clothingworntype = 'nude':
  637. msg'<b><font color = red>You need to get dressed.</font></b>'
  638. gt 'gschool_grounds', 'change_room'
  639. else
  640. minut += 1
  641. gt 'gschool_grounds', 'sports'
  642. end
  643. end
  644. *nl
  645. 'The locker room is accessed through the school gym, and is left unlocked until 18:30 each day, to be utilised by 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>', '.')+''
  646. *nl
  647. 'You can access your <a href="exec: quick_dress = 1 & gt ''wardrobe'', ''default''">default clothing</a> options directly.'
  648. if (hour = 18 and minut >= 30) or hour > 18:
  649. 'The school is closing for the night and you have to leave so you don''t get stuck here all night.'
  650. exit
  651. end
  652. gs 'wardrobe', 'sports_outfit'
  653. act 'Change you outfit':
  654. cla
  655. gt 'wardrobe', 'start'
  656. end
  657. dynamic $publicpan
  658. act 'Look in the mirror': gt 'mirror', 'start'
  659. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  660. dynamic $quickwash
  661. dynamic $basin
  662. if shampoo > 0:
  663. dynamic $shower
  664. else
  665. '<font color="red">You''ve run out of shampoo and will have to buy some more before you can wash yourself.</font>'
  666. end
  667. dynamic $tampon
  668. gs 'din_van', 'pblc_pee'
  669. end
  670. --- gschool_grounds ---------------------------------