pavtrainhall.qsrc 13 KB

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