1
0

nordtrain.qsrc 7.0 KB

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