nordtrain.qsrc 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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:
  44. 'When you pass by the suspicious character, he whispers to you: "I have what you want, miss"'
  45. end
  46. end
  47. act 'Go to the city industrial region': minut += 15 & gt'nord'
  48. act 'Enter the station building': minut += 2 & gt'nordtrain', 'inside'
  49. end
  50. if $ARGS[0] = 'platform':
  51. $metka = 'platform'
  52. $loc = 'nordtrain'
  53. $menu_loc = 'nordtrain'
  54. $menu_arg = 'inside'
  55. menu_off = 0
  56. $location_type = 'public_outdoors'
  57. *clr & cla
  58. gs 'stat'
  59. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
  60. '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.'
  61. act 'Return to the station': minut += 5 & gt 'nordtrain', 'inside'
  62. if Trainpass_day > daystart:
  63. act 'Take a train to the city center': gt 'nordtrain', 'centre'
  64. act 'Take a train to the old platform by the communal village': gt 'nordtrain', 'communal'
  65. act 'Take a train to the village of Gadukino': gt 'nordtrain', 'village'
  66. act 'Take a train to the old town': gt 'nordtrain', 'oldtown'
  67. act 'Take a train to Pavlovsk': gt 'nordtrain', 'pavlovsk'
  68. end
  69. end
  70. if $ARGS[0] = 'toilet':
  71. $metkaM = 'toilet'
  72. $locM = 'nordtrain'
  73. $metka = 'toilet'
  74. $loc = 'nordtrain'
  75. $menu_loc = 'nordtrain'
  76. $menu_arg = 'inside'
  77. menu_off = 0
  78. $location_type = 'bathroom'
  79. *clr & cla
  80. gs'stat'
  81. gs 'themes', 'indoors'
  82. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  83. act 'Return to the station': minut += 1 & gt 'nordtrain', 'inside'
  84. act 'Look in the mirror': gt 'mirror', 'start'
  85. if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
  86. dynamic $tampon
  87. dynamic $quickwash
  88. dynamic $basin
  89. dynamic $removepan
  90. end
  91. if $ARGS[0] = 'ticket':
  92. menu_off = 1
  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. act 'Leave the ticket office': gt 'nordtrain', 'inside'
  123. if money >= 50:
  124. act 'Buy a ticket to the city center (50 <b>₽</b>)':
  125. money -= 50
  126. gt 'nordtrain', 'centre'
  127. end
  128. end
  129. if money >= 50:
  130. act 'Buy a ticket to the old platform by the communal village (50 <b>₽</b>)':
  131. money -= 100
  132. gt 'nordtrain', 'communal'
  133. end
  134. end
  135. if money >= 75:
  136. act 'Buy a ticket to the village of Gadukino (75 <b>₽</b>)':
  137. money -= 75
  138. gt 'nordtrain', 'village'
  139. end
  140. end
  141. if money >= 100:
  142. act 'Buy a ticket to the old town (100 <b>₽</b>)':
  143. money -= 100
  144. gt 'nordtrain', 'oldtown'
  145. end
  146. end
  147. if money >= 125:
  148. act 'Buy a ticket to Pavlovsk (125 <b>₽</b>)':
  149. money -= 125
  150. gt 'nordtrain', 'pavlovsk'
  151. end
  152. end
  153. end
  154. if $ARGS[0] = 'centre':
  155. $loc = 'cityTrain'
  156. $metka = 'inside'
  157. menu_off = 1
  158. *clr & cla
  159. minut += 5
  160. gs 'stat'
  161. '<center><img <<$set_imgh>> src="images/locations/shared/train/electri.jpg"></center>'
  162. 'You pay for the ticket and board the next train going to the city center.'
  163. '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.'
  164. act 'Get off the train at this station':
  165. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  166. gt 'cityTrain', 'inside'
  167. end
  168. end
  169. if $ARGS[0] = 'communal':
  170. $loc = 'train'
  171. $metka = 'communal'
  172. menu_off = 1
  173. minut += 10
  174. if rand(1, 100) < 20: gt 'train', 'events'
  175. gs 'stat'
  176. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  177. 'After 10 minutes you arrive at an old railway platform near the communal village.'
  178. act 'Get off the train':
  179. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  180. gt 'train', 'communal'
  181. end
  182. end
  183. if $ARGS[0] = 'village':
  184. $loc = 'train'
  185. $metka = 'village'
  186. menu_off = 1
  187. minut += 20
  188. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  189. if rand(1, 100) < 20: gt 'train', 'events'
  190. gs 'stat'
  191. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  192. 'After 20 minutes, the train stops at the small station near the village of Gadukino.'
  193. act 'Get off the train':
  194. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  195. gt 'train', 'village'
  196. end
  197. end
  198. if $ARGS[0] = 'oldtown':
  199. $loc = 'train'
  200. $metka = 'oldtown'
  201. menu_off = 1
  202. minut += 30
  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/pushplat.jpg" ></center>'
  207. '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.'
  208. act 'Get off the train':
  209. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  210. gt 'train', 'oldtown'
  211. end
  212. end
  213. if $ARGS[0] = 'pavlovsk':
  214. $loc = 'pavtrainhall'
  215. $metka = 'platform'
  216. menu_off = 1
  217. minut += 35
  218. if rand(1, 100) < 15: gt 'train', 'private'
  219. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  220. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  221. if rand(1, 100) <= 20: gt 'train', 'events'
  222. gs 'stat'
  223. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  224. '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.'
  225. act 'Get off the train':
  226. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  227. gt 'pavtrainhall', 'platform'
  228. end
  229. end
  230. --- nordtrain ---------------------------------