pav_train_hall.qsrc 14 KB

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