1
0

city_industrial_train.qsrc 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. # city_industrial_train
  2. if $ARGS[0] = 'inside':
  3. $loc_arg = 'inside'
  4. $loc = 'city_industrial_train'
  5. $menu_loc = 'city_industrial_train'
  6. $menu_arg = 'inside'
  7. menu_off = 0
  8. $location_type = 'public_indoors'
  9. killvar '$locclass'
  10. CLOSE ALL
  11. if sound = 0:PLAY 'sound/vokzal.mp3',30
  12. *clr & cla
  13. gs'stat'
  14. '<center><img <<$set_imgh>> src="images/locations/shared/train/vokzalholle.jpg" ></center>'
  15. 'There is a <a href="exec:gt ''city_lake_path''">path</a> leading off in to the distance, in the direction of the lake.'
  16. act 'Leave the station': minut += 2 & gt 'city_industrial_train', 'outside'
  17. *nl
  18. if Trainpass_day > daystart:
  19. 'You have <<Trainpass_day - daystart>> days left on your train pass.'
  20. act 'Go to the platforms': gt 'city_industrial_train', 'platform'
  21. else
  22. act 'Go to the ticket office': minut += 1 & gt 'city_industrial_train', 'ticket'
  23. end
  24. act 'Go to the restrooms': minut += 1 & gt 'city_industrial_train', 'toilet'
  25. end
  26. if $ARGS[0] = 'outside':
  27. $loc_arg = 'outside'
  28. $loc = 'city_industrial_train'
  29. $menu_loc = 'city_industrial_train'
  30. $menu_arg = 'outside'
  31. menu_off = 0
  32. $location_type = 'public_outdoors'
  33. *clr & cla
  34. gs'stat'
  35. '<center><B>Railway station</B></center>'
  36. if month >= 11 or month <= 3:
  37. if hour >= 9 and hour <= 16:
  38. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_winter_day.jpg"></center>'
  39. else
  40. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_winter_night.jpg"></center>'
  41. end
  42. else
  43. if hour >= 7 and hour <= 18:
  44. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_day.jpg"></center>'
  45. else
  46. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_night.jpg"></center>'
  47. end
  48. end
  49. if car > 0 and cardrive = 19:
  50. cardrive = 19
  51. 'In the parking lot is <a href="exec:GS ''carF'',''start''">your <<$car>></a>.'
  52. end
  53. if rand(1,100) > 70:
  54. 'You see a <a href="exec:gt ''etoexhib'',''pos54''">suspicious character</a>.'
  55. !fakes use 2 for aware of need for, 1 for have, otherwise 0
  56. if fakepassport = 2 or fakediplom = 2: 'When you pass by the suspicious character, he whispers to you: "I have what you want, miss"'
  57. end
  58. act 'Go to the city industrial region': minut += 15 & gt'city_industrial'
  59. act 'Enter the station building': minut += 2 & gt'city_industrial_train', 'inside'
  60. end
  61. if $ARGS[0] = 'platform':
  62. $loc_arg = 'platform'
  63. $loc = 'city_industrial_train'
  64. $menu_loc = 'city_industrial_train'
  65. $menu_arg = 'inside'
  66. menu_off = 0
  67. $location_type = 'public_outdoors'
  68. *clr & cla
  69. gs 'stat'
  70. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
  71. 'When you arrive at the platform, you can''t help but notice it bustling with activity. Lots of passengers are coming and going, all carrying large bags. It feels like it is always busy here, no matter at what time of the day you are here.'
  72. act 'Return to the station': minut += 5 & gt 'city_industrial_train', 'inside'
  73. if Trainpass_day > daystart:
  74. act 'Take a train to the city center': gt 'city_industrial_train', 'centre'
  75. act 'Take a train to the old platform by the communal village': gt 'city_industrial_train', 'communal'
  76. act 'Take a train to the village of Gadukino': gt 'city_industrial_train', 'village'
  77. act 'Take a train to Pavlovsk': gt 'city_industrial_train', 'pavlovsk'
  78. end
  79. end
  80. if $ARGS[0] = 'toilet':
  81. $locM_arg = 'toilet'
  82. $locM = 'city_industrial_train'
  83. $loc_arg = 'toilet'
  84. $loc = 'city_industrial_train'
  85. $menu_loc = 'city_industrial_train'
  86. $menu_arg = 'inside'
  87. menu_off = 0
  88. $location_type = 'bathroom'
  89. $locclass = 'restroom'
  90. *clr & cla
  91. gs'stat'
  92. gs 'themes', 'indoors'
  93. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  94. act 'Return to the station': minut += 1 & gt 'city_industrial_train', 'inside'
  95. act 'Look in the mirror': gt 'mirror', 'start'
  96. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  97. dynamic $tampon
  98. dynamic $quickwash
  99. dynamic $basin
  100. dynamic $publicpan
  101. end
  102. if $ARGS[0] = 'ticket':
  103. $menu_loc = 'city_industrial_train'
  104. $menu_arg = 'ticket'
  105. menu_off = 0
  106. *clr & cla
  107. gs 'stat'
  108. '<center><h4>Ticket office</h4></center>'
  109. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/ticketoffice.jpg"></center>'
  110. act 'Leave the ticket office':minut += 1 & gt 'city_industrial_train', 'inside'
  111. if money >= 50:
  112. act 'Buy a ticket':
  113. cla
  114. gs 'city_industrial_train', 'buy_ticket'
  115. end
  116. end
  117. if money >= 1500 and Trainpass_day <= daystart:
  118. act 'Buy a weekly pass (7 days - 1500 <b>₽</b>) ':
  119. cla
  120. money -= 1500
  121. Trainpass_day = daystart + 7
  122. act 'Return': gt 'city_industrial_train', 'inside'
  123. end
  124. end
  125. if money >= 5500 and Trainpass_day <= daystart:
  126. act 'Buy a monthly pass (30day - 5500 <b>₽</b>)':
  127. cla
  128. money -= 5500
  129. Trainpass_day = daystart + 30
  130. act 'Return': gt 'city_industrial_train', 'inside'
  131. end
  132. end
  133. end
  134. if $ARGS[0] = 'buy_ticket':
  135. $menu_loc = 'city_industrial_train'
  136. $menu_arg = 'buy_ticket'
  137. menu_off = 0
  138. act 'Leave the ticket office': gt 'city_industrial_train', 'inside'
  139. if money >= 50:
  140. act 'Buy a ticket to the city center (50 <b>₽</b>)':
  141. money -= 50
  142. gt 'city_industrial_train', 'centre'
  143. end
  144. end
  145. if money >= 50:
  146. act 'Buy a ticket to the old platform by the communal village (50 <b>₽</b>)':
  147. money -= 100
  148. gt 'city_industrial_train', 'communal'
  149. end
  150. end
  151. if money >= 75:
  152. act 'Buy a ticket to the village of Gadukino (75 <b>₽</b>)':
  153. money -= 75
  154. gt 'city_industrial_train', 'village'
  155. end
  156. end
  157. if money >= 125:
  158. act 'Buy a ticket to Pavlovsk (125 <b>₽</b>)':
  159. money -= 125
  160. gt 'city_industrial_train', 'pavlovsk'
  161. end
  162. end
  163. end
  164. if $ARGS[0] = 'centre':
  165. $loc = 'city_train'
  166. $loc_arg = 'inside'
  167. menu_off = 1
  168. *clr & cla
  169. minut += 5
  170. gs 'stat'
  171. '<center><img <<$set_imgh>> src="images/locations/shared/train/electri' + rand(1,5) + '.jpg"></center>'
  172. 'You pay for the ticket and board the next train going to the city center.'
  173. 'After 5 minutes, you see the office blocks and shops at the heart of the city. The train stops at its final destination, the busy station in the city center.'
  174. act 'Get off the train at this station':
  175. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  176. gt 'city_train', 'inside'
  177. end
  178. end
  179. if $ARGS[0] = 'communal':
  180. $loc = 'train'
  181. $loc_arg = 'communal'
  182. menu_off = 1
  183. minut += 10
  184. if rand(1, 100) < 20: gt 'train', 'events'
  185. gs 'stat'
  186. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  187. 'After 10 minutes you arrive at an old railway platform near the communal village.'
  188. act 'Get off the train':
  189. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  190. gt 'train', 'communal'
  191. end
  192. end
  193. if $ARGS[0] = 'village':
  194. $loc = 'train'
  195. $loc_arg = 'village'
  196. menu_off = 1
  197. minut += 20
  198. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  199. if rand(1, 100) < 20: gt 'train', 'events'
  200. gs 'stat'
  201. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  202. 'After 20 minutes, the train stops at the small station near the village of Gadukino.'
  203. act 'Get off the train':
  204. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  205. gt 'train', 'village'
  206. end
  207. end
  208. if $ARGS[0] = 'pavlovsk':
  209. $loc = 'pav_train_hall'
  210. $loc_arg = 'platform'
  211. menu_off = 1
  212. minut += 35
  213. if rand(1, 100) < 15: gt 'train', 'private'
  214. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  215. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  216. if rand(1, 100) <= 20: gt 'train', 'events'
  217. gs 'stat'
  218. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  219. 'After 35 minutes, you see the town of Pavlovsk approaching. Pavlovsk Castle is an impressive sight, even from a long distance. The train stops at its final destination, a platform in Pavlovsk station.'
  220. act 'Get off the train':
  221. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  222. gt 'pav_train_hall', 'platform'
  223. end
  224. end
  225. --- city_industrial_train ---------------------------------