pav_train_hall.qsrc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. # pav_train_hall
  2. if $ARGS[0] = '':
  3. $region = 'pav'
  4. $loc = 'pav_train_hall'
  5. $loc_arg = ''
  6. $menu_loc = 'pav_train_hall'
  7. $menu_arg = ''
  8. menu_off = 0
  9. $location_type = 'public_indoors'
  10. CLOSE ALL
  11. if sound = 0:PLAY 'sound/vokzal2.mp3',30
  12. clr
  13. frost = 0
  14. poezddalsled = 0
  15. gs 'stat'
  16. gs 'themes', 'indoors'
  17. '<center><h2>Pavlovsk train station interior</h2></center>'
  18. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  19. *nl
  20. '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 ''pav_train_hall_events'', ''manager''">station manager''s office</a>. The <a href="exec:minut += 1 & gt ''pav_train_hall'', ''toilet''">toilets</a> are located farthest back of the building.'
  21. *nl
  22. 'The long-distance trains are at the station platforms between 11:00-11:30 and 18:00-18:30.'
  23. *nl
  24. *nl
  25. if rand(0,2) = 0 and week < 5 and hour >= 8 and hour < 18:
  26. !!a 1 in 3 chances at those times he is here
  27. if OluQW['met'] = 0:
  28. !!this is just added to the above description of the train station with no interactions
  29. 'You see a very large black man, dressed fairly nice sitting on one of the benches. When some people head for the exit he gets up and walks up to them, asking them if they need a taxi, so far it doesn''t look like anyone is taking him up on his offer.'
  30. else
  31. VK = rand (1,5)
  32. if week = 1 and VK = 1:
  33. DjibrilQW['taxi'] = 1
  34. if DjibrilQW['meet'] = 1:
  35. 'You see your aunts boyfriend <a href="exec:minut += 1 & gt ''olutaxi'', ''station''">Olu</a> sitting on one of the benches, dressed fairly nicely, next to him sits his nephew Djibril. When some people head for the exit Olu gets up and walks up to them, asking them if they need a taxi, so far it doesn''t look like anyone is taking him up on his offer.'
  36. else
  37. 'You see your aunts boyfriend <a href="exec:minut += 1 & gt ''olutaxi'', ''station''">Olu</a> sitting on one of the benches, dressed fairly nicely, next to him sits a younger man that looks similar enough to them that they might be related. When some people head for the exit Olu gets up and walks up to them, asking them if they need a taxi, so far it doesn''t look like anyone is taking him up on his offer.'
  38. end
  39. else
  40. 'You see your aunts boyfriend <a href="exec:minut += 1 & gt ''olutaxi'', ''station''">Olu</a> sitting on one of the benches, dressed fairly nicely. When some people head for the exit he gets up and walks up to them, asking them if they need a taxi, so far it doesn''t look like anyone is taking him up on his offer.'
  41. end
  42. end
  43. end
  44. if mid($start_type,1,2) = 'sg' and SchoolAtestat = 0:
  45. if (sunWeather = 0 or temper <= 0) and hour >= 18 and hour < 20 and week < 6:'You see your classmates <a href="exec:minut += 3 & gt ''gopskver''">Vitek, Dan and Vasily</a> hanging around here.'
  46. end
  47. *nl
  48. if podbros = 0:
  49. podrand = rand(0, 1)
  50. 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 ''pav_train_hall_events'', ''wallet1''">wallet</a> fall out from his pocket, not far away from you.'
  51. *nl
  52. end
  53. act 'Walk to the Market (0:03)': minut += 3 & gt 'pav_market'
  54. act 'Walk to the Commercial area (0:10)': minut += 10 & gt 'pav_commercial'
  55. act 'Walk to the Residential area (0:15)': minut += 15 & gt 'pav_residential'
  56. act 'Walk to the Industrial region (0:15)': minut += 15 & gt 'pav_industrial'
  57. act 'Walk to the Five Eight estate (0:15)': minut += 15 & gt 'pav_complex', 'start'
  58. act 'Walk to the highway (0:15)': minut += 15 & nroad = 20 & gt 'road'
  59. act 'Walk to Pushkin (0:15)': minut += 15 & gt 'pushkin'
  60. act 'Walk to the bus station (0:02)': minut += 2 & gt 'bus', 'pavstation'
  61. if transportVars['trainpass_day'] > daystart:
  62. func('transport_functions', 'display_trainpass_time')
  63. act 'Go to the platforms': gt 'pav_train_hall', 'platform'
  64. else
  65. act 'Go to the ticket office': gt 'pav_train_hall', 'ticket'
  66. end
  67. if drugVars['pav_dropoff'] = 1 and drugVars['heroin_day'] ! daystart: act 'Find the drug dealer':gs 'events', 'pav_drug_dropoff'
  68. if vokzalVork >= 1:
  69. if cleZalDay ! daystart or cleMTDay ! daystart or cleWTDay ! daystart:
  70. act 'Work': gt 'pav_train_hall', 'work'
  71. elseif cleZarplatDay ! daystart:
  72. cleZarplatDay = daystart
  73. cleanDailypay += 250
  74. vokzalVork += 1
  75. gs 'stat'
  76. end
  77. end
  78. if cleanDailypay > 0:
  79. money += cleanDailypay
  80. *nl
  81. 'When you are done cleaning all the places you were told to clean, you go to the manager''s office and collect your <<cleanDailypay>><b>₽</b> pay.'
  82. cleanDailypay = 0
  83. gs 'stat'
  84. end
  85. *nl
  86. if hour = 11 and minut = 0:
  87. poezddalsled = 1
  88. 'The 11:30 long-distance train is currently approaching the platform.'
  89. elseif hour = 11 and minut > 0 and minut < 30:
  90. poezddalsled = 1
  91. 'The 11:30 long-distance train is currently waiting at the platform.'
  92. elseif hour = 11 and minut = 30:
  93. poezddalsled = 1
  94. 'The 11:30 long-distance train is currently leaving the station.'
  95. elseif hour = 18 and minut = 0:
  96. poezddalsled = 1
  97. 'The 18:30 long-distance train is currently approaching the platform.'
  98. elseif hour = 18 and minut > 0 and minut < 30:
  99. poezddalsled = 1
  100. 'The 18:30 long-distance train is currently waiting at the platform.'
  101. elseif hour = 18 and minut = 30:
  102. poezddalsled = 1
  103. 'The 18:30 long-distance train is currently leaving the station.'
  104. end
  105. if poezddalsled = 1:
  106. '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.'
  107. if mc_inventory['trinkets_home'] > 0:'You could <a href="exec:gt ''pav_train_hall_events'', ''trinkets''">try to sell some trinkets</a> to some of the passengers.'
  108. end
  109. end
  110. if $ARGS[0] = 'platform':
  111. $loc = 'pav_train_hall'
  112. $loc_arg = 'platform'
  113. $menu_loc = 'pav_train_hall'
  114. $menu_arg = 'platform'
  115. menu_off = 0
  116. $location_type = 'public_outdoors'
  117. CLOSE ALL
  118. if sound = 0:
  119. if month >=11 and month <= 12 or month >=1 and month <=3:
  120. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/zima.mp3',30
  121. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  122. else
  123. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street_leto.mp3',30
  124. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  125. end
  126. end
  127. *clr & cla
  128. gs'stat'
  129. '<center><h2>Pavlovsk station platforms</h2></center>'
  130. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg"></center>'
  131. *nl
  132. '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.'
  133. *nl
  134. gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
  135. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  136. *nl
  137. if week >= 6 and hour >= 9 and hour <= 10:'You notice <a href="exec:gt ''gschool_socialchg1'', ''tBella''">Bella</a> standing at the train station platform, looking at the time table.'
  138. act 'Enter the station building': gt 'pav_train_hall'
  139. if transportVars['buspass_day'] > daystart: act 'Walk to the bus platfrom (0:02)': minut += 2 & gt 'bus', 'pavstation_busses'
  140. act 'Look at the train schedule':
  141. *clr & cla
  142. gs 'transport_functions', 'display_train_schedule', 'pc'
  143. act 'Stop looking at the schedule': gt 'pav_train_hall', 'platform'
  144. end
  145. if transportVars['trainpass_day'] > daystart:
  146. act 'Take the train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''gadukino'', ''center'')>>)': gt 'train', 'pavlovsk_gadukino'
  147. act 'Take the train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''communal'', ''center'')>>)': gt 'train', 'pavlovsk_communal'
  148. act 'Take the train to the city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''ind'', ''center'')>>)': gt 'train', 'pavlovsk_ind'
  149. act 'Take the train to the city center (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''center'', ''center'')>>)': gt 'train', 'pavlovsk_center'
  150. end
  151. end
  152. if $ARGS[0] = 'ticket':
  153. $menu_loc = 'pav_train_hall'
  154. $menu_arg = 'ticket'
  155. menu_off = 0
  156. *clr & cla
  157. gs 'stat'
  158. '<center><h2>Ticket office</h2></center>'
  159. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/ticketoffice.jpg"></center>'
  160. *nl
  161. gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
  162. 'The next train in the direction of St. Petersburg city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  163. act 'Leave the ticket office':minut += 1 & gt 'pav_train_hall'
  164. act 'Look at the train schedule':
  165. *clr & cla
  166. gs 'transport_functions', 'display_train_schedule', 'pc'
  167. act 'Stop looking at the schedule': gt 'pav_train_hall', 'ticket'
  168. end
  169. if money >= 50:
  170. act 'Buy a ticket':
  171. cla
  172. gs 'pav_train_hall', 'buy_ticket'
  173. end
  174. end
  175. gs 'transport_functions', 'buy_train_pass'
  176. end
  177. if $ARGS[0] = 'buy_ticket':
  178. $menu_loc = 'pav_train_hall'
  179. $menu_arg = 'buy_ticket'
  180. menu_off = 0
  181. act 'Leave the ticket office':minut += 1 & gt 'pav_train_hall'
  182. gs 'transport_functions', 'buy_train_ticket', 'pavlovsk', 'pc'
  183. end
  184. if $ARGS[0] = 'work':
  185. menu_off = 1
  186. *clr & cla
  187. '<center><h2>Pavlovsk train station interior</h2></center>'
  188. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  189. if cleZalDay ! daystart:
  190. act 'Mop the waiting room floor (1:00)':
  191. cls
  192. cleZalDay = daystart
  193. gs 'exercise', 'tier1', 60, 'stren', 'vital'
  194. gs 'exp_gain', 'cleaning', rand(0,2)
  195. pcs_mood -= 6
  196. gs 'stat'
  197. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  198. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and mop the station building floor.'
  199. act 'Continue':minut += 1 & gt 'pav_train_hall', 'work'
  200. end
  201. end
  202. if cleMTDay ! daystart:
  203. act 'Clean the men''s restroom (0:30)':
  204. cls
  205. cleMTDay = daystart
  206. gs 'exercise', 'tier1', 30, 'stren', 'vital'
  207. gs 'exp_gain', 'cleaning', rand(0,2)
  208. pcs_mood -= 6
  209. gs 'stat'
  210. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  211. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and head into the men''s restroom.'
  212. gs 'pav_train_hall_events', 'toilet_event'
  213. !!'You began to wash the floor in the men''s room, and then began to scrub toilets.' <== How exciting! <3 VK
  214. act 'Leave restroom':minut += 1 & gt 'pav_train_hall', 'work'
  215. end
  216. end
  217. if cleWTDay ! daystart:
  218. act 'Clean the women''s restroom (0:30)':
  219. cls
  220. cleWTDay = daystart
  221. gs 'exercise', 'tier1', 30, 'stren', 'vital'
  222. gs 'exp_gain', 'cleaning', rand(0,2)
  223. pcs_mood -= 6
  224. gs 'stat'
  225. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  226. '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.'
  227. gs 'pav_train_hall_events', 'vera'
  228. act 'Leave restroom':minut += 1 & gt 'pav_train_hall', 'work'
  229. end
  230. end
  231. act 'Return': gt 'pav_train_hall'
  232. end
  233. if $ARGS[0] = 'toilet':
  234. $menu_loc = 'pav_train_hall'
  235. $menu_arg = 'toilet'
  236. killvar '$locclass'
  237. menu_off = 0
  238. *clr & cla
  239. vokzalToilet = 0
  240. gs 'stat'
  241. '<center><h2>Pavlovsk train station interior</h2></center>'
  242. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  243. *nl
  244. 'You stand by the station''s restrooms, you see the <a href="exec:minut += 1 & gt ''pav_train_hall'', ''female''">ladies'' restroom</a> to the right and <a href="exec:minut += 1 & gt ''pav_train_hall'', ''male''">men''s restroom</a> to the left, clearly marked by signs on the door.'
  245. act 'Return to the train station':minut += 1 & gt 'pav_train_hall'
  246. end
  247. if $ARGS[0] = 'female':
  248. $locM = 'pav_train_hall'
  249. $locM_arg = 'female'
  250. $loc = 'pav_train_hall'
  251. $loc_arg = 'female'
  252. $menu_loc = 'pav_train_hall'
  253. $menu_arg = 'female'
  254. menu_off = 0
  255. $location_type = 'bathroom'
  256. $locclass = 'restroom'
  257. *clr & cla
  258. vokzalToilet = 1
  259. gs 'stat'
  260. '<center><h4>The ladies'' room</h4></center>'
  261. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  262. 'You open the door to the ladies'' restroom and head inside.'
  263. act 'Leave':minut += 1 & gt 'pav_train_hall', 'toilet'
  264. act 'Look in the mirror': gt 'mirror', 'start'
  265. dynamic $tampon
  266. dynamic $quickwash
  267. dynamic $basin
  268. dynamic $publicpan
  269. end
  270. if $ARGS[0] = 'male':
  271. $locM = 'pav_train_hall'
  272. $locM_arg = 'male'
  273. $loc = 'pav_train_hall'
  274. $loc_arg = 'male'
  275. $menu_loc = 'pav_train_hall'
  276. $menu_arg = 'male'
  277. menu_off = 0
  278. $location_type = 'bathroom'
  279. $locclass = 'restroom'
  280. *clr & cla
  281. vokzalToilet = 2
  282. gs 'stat'
  283. '<center><h4>The men''s room</h4></center>'
  284. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  285. 'You open the door to the men''s restroom and head inside.'
  286. act 'Leave':minut += 1 & gt 'pav_train_hall', 'toilet'
  287. if bimbolevel >= 1:
  288. act 'Wait and see if someone finds you':gt 'trainbimbo', 'pos1'
  289. act 'Quickly enter a stall':gt 'trainbimbo', 'pos5'
  290. end
  291. act 'Look in the mirror':gt 'mirror', 'start'
  292. dynamic $tampon
  293. dynamic $quickwash
  294. dynamic $basin
  295. end
  296. killvar 'temp_transportVars'
  297. --- pav_train_hall ---------------------------------