cityTrain.qsrc 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. # cityTrain
  2. if $ARGS[0] = 'start':
  3. $metka = 'start'
  4. $loc = 'cityTrain'
  5. $location_type = 'public_outdoors'
  6. $menu_loc = 'cityTrain'
  7. $menu_arg = 'start'
  8. menu_off = 0
  9. *clr & cla
  10. gs'stat'
  11. '<center><B>City center railway station</B></center>'
  12. if hour < 9 or hour > 19:
  13. '<center><img <<$set_imgh>> src="images/locations/city/shared/trainstation/central_station_night.jpg"></center>'
  14. else
  15. '<center><img <<$set_imgh>> src="images/locations/city/shared/trainstation/central_station_day.jpg"></center>'
  16. end
  17. 'The main station for the city, it is always busy offering services to many destinations and the best place to park your car or hire a taxi.'
  18. if car > 0 and cardrive = 2:
  19. 'In the parking lot is <a href="exec:GS ''carF'',''start''">your <<$car>></a>.'
  20. end
  21. act 'Go to the city center':minut += 5 & gt 'down'
  22. act 'Enter the station building': minut += 1 & gt 'cityTrain', 'inside'
  23. end
  24. if $ARGS[0] = 'inside':
  25. $metka = 'inside'
  26. $loc = 'cityTrain'
  27. $location_type = 'public_indoors'
  28. $menu_loc = 'cityTrain'
  29. $menu_arg = 'inside'
  30. menu_off = 0
  31. *clr & cla
  32. gs'stat'
  33. '<center><B>City center railway station</B></center>'
  34. '<center><img <<$set_imgh>> src="images/locations/city/shared/trainstation/central_station_inside.jpg"></center>'
  35. 'The grand old station is even more impressive on the inside and has a number of shops and bars as well as all the platforms and trains. '
  36. *nl
  37. act 'Leave the train station': minut += 1 & gt 'cityTrain', 'start'
  38. if Trainpass_day > daystart:
  39. 'You have <<Trainpass_day - daystart>> days left on your train pass.'
  40. act 'Go to the platforms': gt 'cityTrain', 'platform'
  41. else
  42. act 'Go to the ticket office': gt 'cityTrain', 'tickets'
  43. end
  44. end
  45. if $ARGS[0] = 'tickets':
  46. $menu_loc = 'cityTrain'
  47. $menu_arg = 'tickets'
  48. menu_off = 0
  49. *clr & cla
  50. gs 'stat'
  51. '<center><h4>Ticket office</h4></center>'
  52. '<center><img <<$set_imgh>> src="images/locations/shared/train/kassa.jpg" ></center>'
  53. act 'Leave the ticket office':minut += 1 & gt 'cityTrain', 'inside'
  54. act 'Buy a ticket':
  55. cla
  56. gs 'cityTrain', 'buy_ticket'
  57. end
  58. if money >= 1500 and Trainpass_day <= daystart:
  59. act 'Buy a weekly pass (7 days - 1500 <b>₽</b>) ':
  60. cla
  61. menu_off = 1
  62. money -= 1500
  63. Trainpass_day = daystart + 7
  64. act 'Return': gt 'cityTrain', 'inside'
  65. end
  66. end
  67. if money >= 5500 and Trainpass_day <= daystart:
  68. act 'Buy a monthly pass (30day - 5500 <b>₽</b>)':
  69. cla
  70. menu_off = 1
  71. money -= 5500
  72. Trainpass_day = daystart + 30
  73. act 'Return': gt 'cityTrain', 'inside'
  74. end
  75. end
  76. end
  77. if $ARGS[0] = 'buy_ticket':
  78. $menu_loc = 'cityTrain'
  79. $menu_arg = 'buy_ticket'
  80. menu_off = 0
  81. act 'Leave the ticket office': minut += 1 & gt 'cityTrain', 'inside'
  82. act 'Buy a ticket to the city industrial area (50 <b>₽</b>)':
  83. if money >= 50:
  84. money -= 50
  85. gt 'cityTrain', 'ind'
  86. else
  87. 'You don''t have enough money for this ticket.'
  88. end
  89. end
  90. act 'Buy a ticket to the old platform by the communal village (75 <b>₽</b>)':
  91. if money >= 75:
  92. money -= 75
  93. gt 'cityTrain', 'communal'
  94. else
  95. 'You don''t have enough money for this ticket.'
  96. end
  97. end
  98. act 'Buy a ticket to the village of Gadukino (100 <b>₽</b>)':
  99. if money >= 100:
  100. money -= 100
  101. gt 'cityTrain', 'village'
  102. else
  103. 'You don''t have enough money for this ticket.'
  104. end
  105. end
  106. act 'Buy a ticket to Pavlovsk (150 <b>₽</b>)':
  107. if money >= 150:
  108. money -= 150
  109. gt 'cityTrain', 'pavlovsk'
  110. else
  111. 'You don''t have enough money for this ticket.'
  112. end
  113. end
  114. end
  115. if $ARGS[0] = 'platform':
  116. $location_type = 'public_outdoors'
  117. $menu_loc = 'cityTrain'
  118. $menu_arg = 'platform'
  119. menu_off = 0
  120. gs 'stat'
  121. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
  122. '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 shopping bags. It feels like it is always busy here, no matter at what time of the day it is.'
  123. act 'Return to the station hall':gt 'cityTrain', 'inside'
  124. act 'Take a train to the city industrial area': gt 'cityTrain', 'ind'
  125. act 'Take a train to the old platform by the communal village': gt 'cityTrain', 'communal'
  126. act 'Take a train to the village of Gadukino': gt 'cityTrain', 'village'
  127. act 'Take a train to Pavlovsk': gt 'cityTrain', 'pavlovsk'
  128. end
  129. if $ARGS[0] = 'ind':
  130. $loc = 'nordtrain'
  131. $metka = 'platform'
  132. menu_off = 1
  133. minut += 5
  134. gs 'stat'
  135. if rand(1, 100) < 15: gt 'train', 'private'
  136. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  137. if rand(1, 100) <= 20: gt 'train', 'events'
  138. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  139. 'After 5 minutes, the train stops at the St. Petersburg city industrial area station.'
  140. act 'Get off the train':
  141. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  142. gt 'nordtrain', 'platform'
  143. end
  144. end
  145. if $ARGS[0] = 'communal':
  146. $loc = 'train'
  147. $metka = 'communal'
  148. menu_off = 1
  149. minut += 15
  150. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  151. if rand(1, 100) <= 20: gt 'train', 'events'
  152. gs 'stat'
  153. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  154. 'After 15 minutes you arrive at an old railway platform near the communal village.'
  155. act 'Get off the train':
  156. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  157. gt 'train', 'communal'
  158. end
  159. end
  160. if $ARGS[0] = 'village':
  161. $loc = 'train'
  162. $metka = 'village'
  163. menu_off = 1
  164. minut += 25
  165. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  166. if rand(1, 100) <= 20: gt 'train', 'events'
  167. gs 'stat'
  168. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  169. 'After 25 minutes, the train stops at the small station near the village of Gadukino.'
  170. act 'Get off the train':
  171. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  172. gt 'train', 'village'
  173. end
  174. end
  175. if $ARGS[0] = 'pavlovsk':
  176. $loc = 'pavtrainhall'
  177. $metka = 'platform'
  178. menu_off = 1
  179. minut += 40
  180. if rand(1, 100) < 15: gt 'train', 'private'
  181. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  182. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  183. if rand(1, 100) <= 20: gt 'train', 'events'
  184. gs 'stat'
  185. if train_event = 0 and rand(1, 100) < 20: gt 'train', 'events'
  186. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  187. 'After 40 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.'
  188. act 'Get off the train':
  189. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  190. gt 'pavtrainhall', 'platform'
  191. end
  192. end
  193. --- cityTrain ---------------------------------