city_industrial_train.qsrc 7.7 KB

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