nordtrain.qsrc 7.3 KB

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