cityTrain 6.8 KB

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