pav_train_hall.qsrc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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 & $prevloc = $loc & 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 and money >= 1500: 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 tovarL > 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. act 'Wait':gs 'obj_din', 'wait'
  110. end
  111. if $ARGS[0] = 'platform':
  112. $loc = 'pav_train_hall'
  113. $loc_arg = 'platform'
  114. $menu_loc = 'pav_train_hall'
  115. $menu_arg = 'platform'
  116. menu_off = 0
  117. $location_type = 'public_outdoors'
  118. CLOSE ALL
  119. if sound = 0:
  120. if month >=11 and month <= 12 or month >=1 and month <=3:
  121. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/zima.mp3',30
  122. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  123. else
  124. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street_leto.mp3',30
  125. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  126. end
  127. end
  128. *clr & cla
  129. gs'stat'
  130. '<center><h2>Pavlovsk station platforms</h2></center>'
  131. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg"></center>'
  132. *nl
  133. '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.'
  134. *nl
  135. gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
  136. '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.')
  137. *nl
  138. 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.'
  139. act 'Enter the station building': gt 'pav_train_hall'
  140. if transportVars['buspass_day'] > daystart: act 'Walk to the bus platfrom (0:02)': minut += 2 & gt 'bus', 'pavstation_busses'
  141. act 'Look at the train schedule':
  142. *clr & cla
  143. gs 'transport_functions', 'display_train_schedule', 'pc'
  144. act 'Stop looking at the schedule': gt 'pav_train_hall', 'platform'
  145. end
  146. if transportVars['trainpass_day'] > daystart:
  147. act 'Take the train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''gadukino'', ''center'')>>)': gt 'train', 'pavlovsk_gadukino'
  148. act 'Take the train to the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''communal'', ''center'')>>)': gt 'train', 'pavlovsk_communal'
  149. act 'Take the train to the city industrial area (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''ind'', ''center'')>>)': gt 'train', 'pavlovsk_ind'
  150. act 'Take the train to the city center (<<func(''transport_functions'', ''display_train_timecost'', ''pavlovsk'', ''center'', ''center'')>>)': gt 'train', 'pavlovsk_center'
  151. end
  152. end
  153. if $ARGS[0] = 'ticket':
  154. $menu_loc = 'pav_train_hall'
  155. $menu_arg = 'ticket'
  156. menu_off = 0
  157. *clr & cla
  158. gs 'stat'
  159. '<center><h2>Ticket office</h2></center>'
  160. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/ticketoffice.jpg"></center>'
  161. *nl
  162. gs 'transport_functions', 'set_train_wait_time', 'pavlovsk'
  163. '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.')
  164. act 'Leave the ticket office':minut += 1 & gt 'pav_train_hall'
  165. act 'Look at the train schedule':
  166. *clr & cla
  167. gs 'transport_functions', 'display_train_schedule', 'pc'
  168. act 'Stop looking at the schedule': gt 'pav_train_hall', 'ticket'
  169. end
  170. if money >= 50:
  171. act 'Buy a ticket':
  172. cla
  173. gs 'pav_train_hall', 'buy_ticket'
  174. end
  175. end
  176. gs 'transport_functions', 'buy_train_pass'
  177. end
  178. if $ARGS[0] = 'buy_ticket':
  179. $menu_loc = 'pav_train_hall'
  180. $menu_arg = 'buy_ticket'
  181. menu_off = 0
  182. act 'Leave the ticket office':minut += 1 & gt 'pav_train_hall'
  183. gs 'transport_functions', 'buy_train_ticket', 'pavlovsk', 'pc'
  184. end
  185. if $ARGS[0] = 'work':
  186. menu_off = 1
  187. *clr & cla
  188. '<center><h2>Pavlovsk train station interior</h2></center>'
  189. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  190. if cleZalDay ! daystart:
  191. act 'Mop the waiting room floor (1:00)':
  192. cls
  193. cleZalDay = daystart
  194. gs 'exercise', 'tier1', 60, 'stren', 'vital'
  195. gs 'exp_gain', 'cleaning', rand(0,2)
  196. pcs_mood -= 6
  197. gs 'stat'
  198. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  199. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and mop the station building floor.'
  200. act 'Continue':minut += 1 & gt 'pav_train_hall', 'work'
  201. end
  202. end
  203. if cleMTDay ! daystart:
  204. act 'Clean the men''s restroom (0:30)':
  205. cls
  206. cleMTDay = daystart
  207. gs 'exercise', 'tier1', 30, 'stren', 'vital'
  208. gs 'exp_gain', 'cleaning', rand(0,2)
  209. pcs_mood -= 6
  210. gs 'stat'
  211. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  212. 'You take some cleaning supplies from the maintenance closet, pour some water and soap into a bucket and head into the men''s restroom.'
  213. gs 'pav_train_hall_events', 'toilet_event'
  214. !!'You began to wash the floor in the men''s room, and then began to scrub toilets.' <== How exciting! <3 VK
  215. act 'Leave restroom':minut += 1 & gt 'pav_train_hall', 'work'
  216. end
  217. end
  218. if cleWTDay ! daystart:
  219. act 'Clean the women''s restroom (0:30)':
  220. cls
  221. cleWTDay = daystart
  222. gs 'exercise', 'tier1', 30, 'stren', 'vital'
  223. gs 'exp_gain', 'cleaning', rand(0,2)
  224. pcs_mood -= 6
  225. gs 'stat'
  226. '<center><img <<$set_imgh>> src="images/locations/city/residential/office/clener1.jpg"></center>'
  227. '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.'
  228. gs 'pav_train_hall_events', 'vera'
  229. act 'Leave restroom':minut += 1 & gt 'pav_train_hall', 'work'
  230. end
  231. end
  232. act 'Return': gt 'pav_train_hall'
  233. end
  234. if $ARGS[0] = 'toilet':
  235. $menu_loc = 'pav_train_hall'
  236. $menu_arg = 'toilet'
  237. killvar '$locclass'
  238. menu_off = 0
  239. *clr & cla
  240. vokzalToilet = 0
  241. gs 'stat'
  242. '<center><h2>Pavlovsk train station interior</h2></center>'
  243. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzal.jpg"></center>'
  244. *nl
  245. '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.'
  246. act 'Return to the train station':minut += 1 & gt 'pav_train_hall'
  247. end
  248. if $ARGS[0] = 'female':
  249. $locM = 'pav_train_hall'
  250. $locM_arg = 'female'
  251. $loc = 'pav_train_hall'
  252. $loc_arg = 'female'
  253. $menu_loc = 'pav_train_hall'
  254. $menu_arg = 'female'
  255. menu_off = 0
  256. $location_type = 'bathroom'
  257. $locclass = 'restroom'
  258. *clr & cla
  259. vokzalToilet = 1
  260. gs 'stat'
  261. '<center><h4>The ladies'' room</h4></center>'
  262. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  263. 'You open the door to the ladies'' restroom and head inside.'
  264. act 'Leave':minut += 1 & gt 'pav_train_hall', 'toilet'
  265. act 'Look in the mirror': gt 'mirror', 'start'
  266. dynamic $tampon
  267. dynamic $quickwash
  268. dynamic $basin
  269. dynamic $publicpan
  270. end
  271. if $ARGS[0] = 'male':
  272. $locM = 'pav_train_hall'
  273. $locM_arg = 'male'
  274. $loc = 'pav_train_hall'
  275. $loc_arg = 'male'
  276. $menu_loc = 'pav_train_hall'
  277. $menu_arg = 'male'
  278. menu_off = 0
  279. $location_type = 'bathroom'
  280. $locclass = 'restroom'
  281. *clr & cla
  282. vokzalToilet = 2
  283. gs 'stat'
  284. '<center><h4>The men''s room</h4></center>'
  285. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  286. 'You open the door to the men''s restroom and head inside.'
  287. act 'Leave':minut += 1 & gt 'pav_train_hall', 'toilet'
  288. if bimbolevel >= 1:
  289. act 'Wait and see if someone finds you':gt 'trainbimbo', 'pos1'
  290. act 'Quickly enter a stall':gt 'trainbimbo', 'pos5'
  291. end
  292. act 'Look in the mirror':gt 'mirror', 'start'
  293. dynamic $tampon
  294. dynamic $quickwash
  295. dynamic $basin
  296. end
  297. killvar 'temp_transportVars'
  298. --- pav_train_hall ---------------------------------