1
0

city_industrial_train.qsrc 7.5 KB

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