1
0

pavtrainhall.qsrc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. # pavtrainhall
  2. if $ARGS[0] = '':
  3. $metka = ''
  4. $loc = 'pavtrainhall'
  5. $menu_loc = 'pavtrainhall'
  6. $menu_arg = ''
  7. menu_off = 0
  8. $location_type = 'public_indoors'
  9. CLOSE ALL
  10. if sound = 0:PLAY 'sound/vokzal2.mp3',30
  11. clr
  12. frost = 0
  13. poezddalsled = 0
  14. gs 'stat'
  15. gs 'themes', 'indoors'
  16. '<center><h2>Pavlovsk train station interior</h2></center>'
  17. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  18. *nl
  19. 'Stepping into the station building you are greated by a large waiting room, where passengers await the trains. In one of the corners you can clearly see the <a href="exec: gt ''pavtrainhall_events'', ''manager''">station manager''s office</a>. The <a href="exec:minut += 1 & gt ''pavtrainhall'', ''toilet''">toilets</a> are located farthest back of the building.'
  20. *nl
  21. 'The long-distance trains are at the station platforms between 11:00-11:30 and 18:00-18:30.'
  22. *nl
  23. *nl
  24. if StoryLine = 1 and SchoolAtestat = 0:
  25. if (sunWeather = 0 or temper <= 0) and hour >= 18 and hour < 20 and week < 6:
  26. 'You see your classmates <a href="exec:minut += 3 & $prevloc = $loc & gt ''gopskver''">Vitek, Dan and Vasily</a> hanging around here.'
  27. end
  28. end
  29. *nl
  30. if podbros = 0:
  31. podrand = rand(0, 1)
  32. if money >= 1000 and hour >= 8 and hour <= 20 and podrand = 0:'As you walk through the station building, you notice a man''s thick <a href="exec: gt ''pavtrainhall_events'', ''wallet1''">wallet</a> fall out from his pocket, not far away from you.'
  33. *nl
  34. end
  35. act 'Leave the train station':minut += 3 & gt 'pavtrain'
  36. if Trainpass_day > daystart:
  37. 'You have <<Trainpass_day - daystart>> days left on your train pass.'
  38. act 'Go to the platforms': gt 'pavtrainhall', 'platform'
  39. else
  40. act 'Go to the ticket office': gt 'pavtrainhall', 'ticket'
  41. end
  42. if snarkozak = 1 and narkossista = 0 and narkozakday ! day and money >= 1500: act 'Find the drug dealer':gs 'events', 'snarkozaka'
  43. if vokzalVork >= 1:
  44. if cleZalDay ! daystart or cleMTDay ! daystart or cleWTDay ! daystart:
  45. act 'Work': gt 'pavtrainhall', 'work'
  46. elseif cleZarplatDay ! daystart:
  47. cleZarplatDay = daystart
  48. cleanDailypay += 250
  49. vokzalVork += 1
  50. gs 'stat'
  51. end
  52. end
  53. if cleanDailypay > 0:
  54. act 'Collect your salary':
  55. menu_off = 1
  56. *clr & cla
  57. '<center><h2>Pavlovsk train station interior</h2></center>'
  58. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  59. money += cleanDailypay
  60. cleanDailypay = 0
  61. minut += 3
  62. gs 'stat'
  63. 'When you are done cleaning all the places you were told to clean, you go to the cashier and collect your well-earned salary.'
  64. act 'Continue':minut += 1 & gt 'pavtrainhall'
  65. end
  66. end
  67. *nl
  68. if hour = 11 and minut = 0:
  69. poezddalsled = 1
  70. 'The 11:30 long-distance train is currently approaching the platform.'
  71. elseif hour = 11 and minut > 0 and minut < 30:
  72. poezddalsled = 1
  73. 'The 11:30 long-distance train is currently waiting at the platform.'
  74. elseif hour = 11 and minut = 30:
  75. poezddalsled = 1
  76. 'The 11:30 long-distance train is currently leaving the station.'
  77. elseif hour = 18 and minut = 0:
  78. poezddalsled = 1
  79. 'The 18:30 long-distance train is currently approaching the platform.'
  80. elseif hour = 18 and minut > 0 and minut < 30:
  81. poezddalsled = 1
  82. 'The 18:30 long-distance train is currently waiting at the platform.'
  83. elseif hour = 18 and minut = 30:
  84. poezddalsled = 1
  85. 'The 18:30 long-distance train is currently leaving the station.'
  86. end
  87. if poezddalsled = 1:
  88. 'The platform is bustling with passengers that are entering or leaving the currently waiting train, carrying their heavy bags with them. Several police officers are patrolling the platforms while the train is here, keeping an eye out for any unruly activities.'
  89. if tovarL > 0:
  90. act 'Sell your goods to passengers':gt 'pavtrainhall_events', 'trinkets'
  91. end
  92. end
  93. act 'Wait':gs 'obj_din', 'wait'
  94. end
  95. if $ARGS[0] = 'platform':
  96. $loc = 'pavtrainhall'
  97. $metka = 'platform'
  98. $menu_loc = 'pavtrainhall'
  99. $menu_arg = 'platform'
  100. menu_off = 0
  101. $location_type = 'public_outdoors'
  102. CLOSE ALL
  103. if sound = 0:
  104. if month >=11 and month <= 12 or month >=1 and month <=3:
  105. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/zima.mp3',30
  106. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  107. else
  108. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street_leto.mp3',30
  109. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  110. end
  111. end
  112. *clr & cla
  113. gs'stat'
  114. '<center><h2>Pavlovsk station platforms</h2></center>'
  115. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg"></center>'
  116. *nl
  117. 'Because Pavlovsk is a place that attracts a fair amount of tourists, the station can be quite busy at times. The busiest times on the platforms are between 11:00 and 11:30, and between 18:00 and 18:30 when the long-distance trains are ready for boarding.'
  118. *nl
  119. if week >= 6 and hour >= 9 and hour <= 10:
  120. 'You notice <a href="exec:gt ''gschool_socialchg1'', ''tBella''">Bella</a> standing at the train station platform, looking at the time table.'
  121. end
  122. act 'Enter the station building': gt'pavtrainhall'
  123. if Trainpass_day > daystart:
  124. act 'Take the train to the village of Gadukino': gt 'pavtrainhall', 'village'
  125. act 'Take the train to the communal village': gt 'pavtrainhall', 'communal'
  126. act 'Take the train to city industrial area': gt 'pavtrainhall', 'ind'
  127. act 'Take the train to city center': gt 'pavtrainhall', 'centre'
  128. end
  129. end
  130. if $ARGS[0] = 'work':
  131. menu_off = 1
  132. *clr & cla
  133. '<center><h2>Pavlovsk train station interior</h2></center>'
  134. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  135. if cleZalDay ! daystart:
  136. act 'Mop the waiting room floor (1:00)':
  137. cls
  138. cleZalDay = daystart
  139. gs 'exercise', 'tier1', 60, 'stren_exp', 'vital_exp'
  140. pcs_mood -= 6
  141. gs 'stat'
  142. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  143. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and mop the station building floor.'
  144. act 'Continue':minut += 1 & gt 'pavtrainhall', 'work'
  145. end
  146. end
  147. if cleMTDay ! daystart:
  148. act 'Clean the men''s restroom (0:30)':
  149. cls
  150. cleMTDay = daystart
  151. gs 'exercise', 'tier1', 30, 'stren_exp', 'vital_exp'
  152. pcs_mood -= 6
  153. gs 'stat'
  154. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  155. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and head into the men''s restroom.'
  156. gs 'pavtrainhall_events', 'toilet_event'
  157. !!'You began to wash the floor in the men''s room, and then began to scrub toilets.'
  158. act 'Leave restroom':minut += 1 & gt 'pavtrainhall', 'work'
  159. end
  160. end
  161. if cleWTDay ! daystart:
  162. act 'Clean the women''s restroom (0:30)':
  163. cls
  164. cleWTDay = daystart
  165. gs 'exercise', 'tier1', 30, 'stren_exp', 'vital_exp'
  166. pcs_mood -= 6
  167. gs 'stat'
  168. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  169. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and scrub the toilets in the ladies'' restroom before you finish up by mopping the floor.'
  170. gs 'pavtrainhall_events', 'vera'
  171. act 'Leave restroom':minut += 1 & gt 'pavtrainhall', 'work'
  172. end
  173. end
  174. act 'Return': gt 'pavtrainhall'
  175. end
  176. if $ARGS[0] = 'ticket':
  177. $menu_loc = 'pavtrainhall'
  178. $menu_arg = 'ticket'
  179. menu_off = 0
  180. *clr & cla
  181. gs 'stat'
  182. '<center><h2>Ticket office</h2></center>'
  183. '<center><img <<$set_imgh>> src="images/locations/shared/train/kassa.jpg"></center>'
  184. act 'Leave the ticket office':minut += 1 & gt 'pavtrainhall'
  185. if money >= 50:
  186. act 'Buy a ticket':
  187. cla
  188. gs 'pavtrainhall', 'buy_ticket'
  189. end
  190. end
  191. if money >= 1500 and Trainpass_day <= daystart:
  192. act 'Buy a weekly pass (7 days - 1500 <b>₽</b>) ':
  193. cla
  194. money -= 1500
  195. Trainpass_day = daystart + 7
  196. act 'Return': gt 'pavtrainhall'
  197. end
  198. end
  199. if money >= 5500 and Trainpass_day <= daystart:
  200. act 'Buy a monthly pass (30day - 5500 <b>₽</b>)':
  201. cla
  202. money -= 5500
  203. Trainpass_day = daystart + 30
  204. act 'Return': gt 'pavtrainhall'
  205. end
  206. end
  207. end
  208. if $ARGS[0] = 'buy_ticket':
  209. $menu_loc = 'pavtrainhall'
  210. $menu_arg = 'buy_ticket'
  211. menu_off = 0
  212. act 'Leave the ticket office':minut += 1 & gt 'pavtrainhall'
  213. if money >= 75:
  214. act 'Buy a ticket to the village of Gadukino (75 <b>₽</b>)':
  215. money -= 75
  216. gt 'pavtrainhall', 'village'
  217. end
  218. end
  219. if money >= 100:
  220. act 'Buy a ticket to the communal village (100 <b>₽</b>)':
  221. money -= 100
  222. gt 'pavtrainhall', 'communal'
  223. end
  224. end
  225. if money >= 125:
  226. act 'Buy a ticket to city industrial area (125 <b>₽</b>)':
  227. money -= 125
  228. gt 'pavtrainhall', 'ind'
  229. end
  230. end
  231. if money >= 150:
  232. act 'Buy a ticket to city center (150 <b>₽</b>)':
  233. money -= 150
  234. gt 'pavtrainhall', 'centre'
  235. end
  236. end
  237. end
  238. if $ARGS[0] = 'village':
  239. $loc = 'train'
  240. $metka = 'village'
  241. menu_off = 1
  242. minut += 15
  243. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  244. if rand(1, 100) < 20: gt 'train', 'events'
  245. gs 'stat'
  246. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  247. 'After 15 minutes, the train stops at the small station near the village of Gadukino.'
  248. act 'Get off the train':
  249. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  250. gt 'train', 'village'
  251. end
  252. end
  253. if $ARGS[0] = 'communal':
  254. $loc = 'train'
  255. $metka = 'communal'
  256. menu_off = 1
  257. minut += 25
  258. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  259. if rand(1, 100) <= 20: gt 'train', 'events'
  260. gs 'stat'
  261. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  262. 'After 20 minutes you arrive at an old railway platform near the communal village.'
  263. act 'Get off the train':
  264. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  265. gt 'train', 'communal'
  266. end
  267. end
  268. if $ARGS[0] = 'ind':
  269. $loc = 'nordtrain'
  270. $metka = 'platform'
  271. menu_off = 1
  272. minut += 35
  273. if rand(1, 100) < 15: gt 'train', 'private'
  274. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  275. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  276. if rand(1, 100) <= 20: gt 'train', 'events'
  277. gs 'stat'
  278. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  279. 'After 35 minutes, the train stops at the St. Petersburg city industrial area station.'
  280. act 'Get off the train':
  281. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  282. gt 'nordtrain', 'platform'
  283. end
  284. end
  285. if $ARGS[0] = 'centre':
  286. $loc = 'cityTrain'
  287. $metka = 'inside'
  288. menu_off = 1
  289. minut += 40
  290. if rand(1, 100) < 15: gt 'train', 'private'
  291. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  292. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  293. if rand(1, 100) <= 20: gt 'train', 'events'
  294. gs 'stat'
  295. '<center><img <<$set_imgh>> src="images/locations/shared/train/cityplat.jpg" ></center>'
  296. 'After 40 minutes, the train stops at the St. Petersburg city center station. The large office blocks and shopping centers fill your view.'
  297. act 'Get off the train':
  298. if rand(1, 100) <= 5: gt 'train_incidental', 'end'
  299. gt 'cityTrain', 'inside'
  300. end
  301. end
  302. if $ARGS[0] = 'toilet':
  303. $menu_loc = 'pavtrainhall'
  304. $menu_arg = 'toilet'
  305. menu_off = 0
  306. *clr & cla
  307. vokzalToilet = 0
  308. gs 'stat'
  309. '<center><h2>Pavlovsk train station interior</h2></center>'
  310. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  311. *nl
  312. 'You stand by the station''s restrooms, you see the <a href="exec:minut += 1 & gt ''pavtrainhall'', ''female''">ladies'' restroom</a> to the right and <a href="exec:minut += 1 & gt ''pavtrainhall'', ''male''">men''s restroom</a> to the left, clearly marked by signs on the door.'
  313. act 'Return to the train station':minut += 1 & gt 'pavtrainhall'
  314. end
  315. if $ARGS[0] = 'female':
  316. $locM = 'pavtrainhall'
  317. $metkaM = 'female'
  318. $loc = 'pavtrainhall'
  319. $metka = 'female'
  320. $menu_loc = 'pavtrainhall'
  321. $menu_arg = 'female'
  322. menu_off = 0
  323. $location_type = 'bathroom'
  324. *clr & cla
  325. vokzalToilet = 1
  326. gs 'stat'
  327. '<center><h4>The ladies'' room</h4></center>'
  328. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  329. 'You open the door to the ladies'' restroom and head inside.'
  330. act 'Leave':minut += 1 & gt 'pavtrainhall', 'toilet'
  331. act 'Look in the mirror': gt 'mirror', 'start'
  332. dynamic $tampon
  333. dynamic $quickwash
  334. dynamic $basin
  335. dynamic $removepan
  336. end
  337. if $ARGS[0] = 'male':
  338. $locM = 'pavtrainhall'
  339. $metkaM = 'male'
  340. $loc = 'pavtrainhall'
  341. $metka = 'male'
  342. $menu_loc = 'pavtrainhall'
  343. $menu_arg = 'male'
  344. menu_off = 0
  345. $location_type = 'bathroom'
  346. *clr & cla
  347. vokzalToilet = 2
  348. gs 'stat'
  349. '<center><h4>The men''s room</h4></center>'
  350. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  351. 'You open the door to the men''s restroom and head inside.'
  352. act 'Leave':minut += 1 & gt 'pavtrainhall', 'toilet'
  353. if bimbolevel >= 1:
  354. act 'Wait and see if someone finds you':gt 'trainbimbo', 'pos1'
  355. act 'Quickly enter a stall':gt 'trainbimbo', 'pos5'
  356. end
  357. act 'Look in the mirror':gt 'mirror', 'start'
  358. dynamic $tampon
  359. dynamic $quickwash
  360. dynamic $basin
  361. end
  362. --- pavtrainhall ---------------------------------