nordtrain.qsrc 7.8 KB

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