city_industrial_train.qsrc 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. act 'Go to the city industrial region': minut += 15 & gt'city_industrial'
  54. act 'Enter the station building': minut += 2 & gt'city_industrial_train', 'inside'
  55. end
  56. if $ARGS[0] = 'platform':
  57. $loc_arg = 'platform'
  58. $loc = 'city_industrial_train'
  59. $menu_loc = 'city_industrial_train'
  60. $menu_arg = 'inside'
  61. menu_off = 0
  62. $location_type = 'public_outdoors'
  63. *clr & cla
  64. gs 'stat'
  65. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
  66. '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.'
  67. act 'Return to the station': minut += 5 & gt 'city_industrial_train', 'inside'
  68. if Trainpass_day > daystart:
  69. act 'Take a train to the city center': gt 'city_industrial_train', 'centre'
  70. act 'Take a train to the old platform by the communal village': gt 'city_industrial_train', 'communal'
  71. act 'Take a train to the village of Gadukino': gt 'city_industrial_train', 'village'
  72. act 'Take a train to Pavlovsk': gt 'city_industrial_train', 'pavlovsk'
  73. end
  74. end
  75. if $ARGS[0] = 'toilet':
  76. $locM_arg = 'toilet'
  77. $locM = 'city_industrial_train'
  78. $loc_arg = 'toilet'
  79. $loc = 'city_industrial_train'
  80. $menu_loc = 'city_industrial_train'
  81. $menu_arg = 'inside'
  82. menu_off = 0
  83. $location_type = 'bathroom'
  84. $locclass = 'restroom'
  85. *clr & cla
  86. gs'stat'
  87. gs 'themes', 'indoors'
  88. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  89. act 'Return to the station': minut += 1 & gt 'city_industrial_train', 'inside'
  90. act 'Look in the mirror': gt 'mirror', 'start'
  91. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  92. dynamic $tampon
  93. dynamic $quickwash
  94. dynamic $basin
  95. dynamic $publicpan
  96. end
  97. if $ARGS[0] = 'ticket':
  98. $menu_loc = 'city_industrial_train'
  99. $menu_arg = 'ticket'
  100. menu_off = 0
  101. *clr & cla
  102. gs 'stat'
  103. '<center><h4>Ticket office</h4></center>'
  104. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/ticketoffice.jpg"></center>'
  105. act 'Leave the ticket office':minut += 1 & gt 'city_industrial_train', 'inside'
  106. if money >= 50:
  107. act 'Buy a ticket':
  108. cla
  109. gs 'city_industrial_train', 'buy_ticket'
  110. end
  111. end
  112. if money >= 1500 and Trainpass_day <= daystart:
  113. act 'Buy a weekly pass (7 days - 1500 <b>₽</b>) ':
  114. cla
  115. money -= 1500
  116. Trainpass_day = daystart + 7
  117. act 'Return': gt 'city_industrial_train', 'inside'
  118. end
  119. end
  120. if money >= 5500 and Trainpass_day <= daystart:
  121. act 'Buy a monthly pass (30day - 5500 <b>₽</b>)':
  122. cla
  123. money -= 5500
  124. Trainpass_day = daystart + 30
  125. act 'Return': gt 'city_industrial_train', 'inside'
  126. end
  127. end
  128. end
  129. if $ARGS[0] = 'buy_ticket':
  130. $menu_loc = 'city_industrial_train'
  131. $menu_arg = 'buy_ticket'
  132. menu_off = 0
  133. act 'Leave the ticket office': gt 'city_industrial_train', 'inside'
  134. if money >= 50:
  135. act 'Buy a ticket to the city center (50 <b>₽</b>)':
  136. money -= 50
  137. gt 'city_industrial_train', 'centre'
  138. end
  139. end
  140. if money >= 50:
  141. act 'Buy a ticket to the old platform by the communal village (50 <b>₽</b>)':
  142. money -= 100
  143. gt 'city_industrial_train', 'communal'
  144. end
  145. end
  146. if money >= 75:
  147. act 'Buy a ticket to the village of Gadukino (75 <b>₽</b>)':
  148. money -= 75
  149. gt 'city_industrial_train', 'village'
  150. end
  151. end
  152. if money >= 125:
  153. act 'Buy a ticket to Pavlovsk (125 <b>₽</b>)':
  154. money -= 125
  155. gt 'city_industrial_train', 'pavlovsk'
  156. end
  157. end
  158. end
  159. if $ARGS[0] = 'centre':
  160. $loc = 'city_train'
  161. $loc_arg = 'inside'
  162. menu_off = 1
  163. *clr & cla
  164. minut += 5
  165. gs 'stat'
  166. '<center><img <<$set_imgh>> src="images/locations/shared/train/electri' + rand(1,5) + '.jpg"></center>'
  167. 'You pay for the ticket and board the next train going to the city center.'
  168. '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.'
  169. act 'Get off the train at this station':
  170. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  171. gt 'city_train', 'inside'
  172. end
  173. end
  174. if $ARGS[0] = 'communal':
  175. $loc = 'train'
  176. $loc_arg = 'communal'
  177. menu_off = 1
  178. minut += 10
  179. if rand(1, 100) < 20: gt 'train', 'events'
  180. gs 'stat'
  181. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  182. 'After 10 minutes you arrive at an old railway platform near the communal village.'
  183. act 'Get off the train':
  184. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  185. gt 'train', 'communal'
  186. end
  187. end
  188. if $ARGS[0] = 'village':
  189. $loc = 'train'
  190. $loc_arg = 'village'
  191. menu_off = 1
  192. minut += 20
  193. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  194. if rand(1, 100) < 20: gt 'train', 'events'
  195. gs 'stat'
  196. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  197. 'After 20 minutes, the train stops at the small station near the village of Gadukino.'
  198. act 'Get off the train':
  199. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  200. gt 'train', 'village'
  201. end
  202. end
  203. if $ARGS[0] = 'pavlovsk':
  204. $loc = 'pav_train_hall'
  205. $loc_arg = 'platform'
  206. menu_off = 1
  207. minut += 35
  208. if rand(1, 100) < 15: gt 'train', 'private'
  209. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  210. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  211. if rand(1, 100) <= 20: gt 'train', 'events'
  212. gs 'stat'
  213. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  214. '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.'
  215. act 'Get off the train':
  216. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  217. gt 'pav_train_hall', 'platform'
  218. end
  219. end
  220. --- city_industrial_train ---------------------------------