pavtrainhall.qsrc 13 KB

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