nordtrain.qsrc 7.5 KB

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