city_train.qsrc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # city_train
  2. if $ARGS[0] = 'start':
  3. $loc_arg = 'start'
  4. $loc = 'city_train'
  5. $location_type = 'public_outdoors'
  6. $menu_loc = 'city_train'
  7. $menu_arg = 'start'
  8. menu_off = 0
  9. *clr & cla
  10. gs'stat'
  11. '<center><B>City center railway station</B></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/city/shared/trainstation/central_station_inside.jpg"></center>'
  13. 'The grand old station in the city center is an impressive building. It is busy and has a number of shops and bars as well as all the platforms and trains. '
  14. *nl
  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 'Walk to the city center (0:05)':minut += 5 & gt 'city_center'
  19. if Trainpass_day > daystart:
  20. 'You have <<Trainpass_day - daystart>> days left on your train pass.'
  21. act 'Go to the platforms': gt 'city_train', 'platform'
  22. else
  23. act 'Go to the ticket office': gt 'city_train', 'tickets'
  24. end
  25. end
  26. if $ARGS[0] = 'tickets':
  27. $menu_loc = 'city_train'
  28. $menu_arg = 'tickets'
  29. menu_off = 0
  30. *clr & cla
  31. gs 'stat'
  32. '<center><h4>Ticket office</h4></center>'
  33. '<center><img <<$set_imgh>> src="images/locations/shared/train/kassa.jpg" ></center>'
  34. act 'Leave the ticket office':minut += 1 & gt 'city_train', 'start'
  35. act 'Buy a ticket':
  36. cla
  37. gs 'city_train', 'buy_ticket'
  38. end
  39. gs 'train_functions', 'buy_train_pass'
  40. end
  41. if $ARGS[0] = 'buy_ticket':
  42. $menu_loc = 'city_train'
  43. $menu_arg = 'buy_ticket'
  44. menu_off = 0
  45. act 'Leave the ticket office': minut += 1 & gt 'city_train', 'start'
  46. gs 'train_functions', 'buy_ticket', 'center'
  47. end
  48. if $ARGS[0] = 'platform':
  49. $location_type = 'public_outdoors'
  50. $menu_loc = 'city_train'
  51. $menu_arg = 'platform'
  52. menu_off = 0
  53. gs 'stat'
  54. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  55. '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.'
  56. act 'Return to the station hall':gt 'city_train', 'start'
  57. act 'Take a train to the city industrial area': gt 'city_train', 'ind'
  58. act 'Take a train to the old platform by the communal village': gt 'city_train', 'communal'
  59. act 'Take a train to the village of Gadukino': gt 'city_train', 'village'
  60. act 'Take a train to Pavlovsk': gt 'city_train', 'pavlovsk'
  61. end
  62. if $ARGS[0] = 'ind':
  63. $loc = 'city_industrial_train'
  64. $loc_arg = 'platform'
  65. menu_off = 1
  66. minut += 5
  67. gs 'stat'
  68. if rand(1, 100) < 15: gt 'train', 'private'
  69. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  70. if rand(1, 100) <= 20: gt 'train', 'events'
  71. '<center><img <<$set_imgh>> src="images/locations/shared/train/indusplat.jpg" ></center>'
  72. 'After 5 minutes, the train stops at the St. Petersburg city industrial area station.'
  73. act 'Get off the train':
  74. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  75. gt 'city_industrial_train', 'platform'
  76. end
  77. end
  78. if $ARGS[0] = 'communal':
  79. $loc = 'train'
  80. $loc_arg = 'communal'
  81. menu_off = 1
  82. minut += 15
  83. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  84. if rand(1, 100) <= 20: gt 'train', 'events'
  85. gs 'stat'
  86. '<center><img <<$set_imgh>> src="images/locations/shared/train/oldplat.jpg" ></center>'
  87. 'After 15 minutes you arrive at an old railway platform near the communal village.'
  88. act 'Get off the train':
  89. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  90. gt 'train', 'communal'
  91. end
  92. end
  93. if $ARGS[0] = 'village':
  94. $loc = 'train'
  95. $loc_arg = 'village'
  96. menu_off = 1
  97. minut += 25
  98. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  99. if rand(1, 100) <= 20: gt 'train', 'events'
  100. gs 'stat'
  101. '<center><img <<$set_imgh>> src="images/locations/shared/train/gadplat.jpg" ></center>'
  102. 'After 25 minutes, the train stops at the small station near the village of Gadukino.'
  103. act 'Get off the train':
  104. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  105. gt 'train', 'village'
  106. end
  107. end
  108. if $ARGS[0] = 'pavlovsk':
  109. $loc = 'pav_train_hall'
  110. $loc_arg = 'platform'
  111. menu_off = 1
  112. minut += 40
  113. if rand(1, 100) < 15: gt 'train', 'private'
  114. if rand(1, 100) < 30: gt 'train', 'Gopnik'
  115. if rand(1, 100) <= 10: gt 'train_incidental', 'events'
  116. if rand(1, 100) <= 20: gt 'train', 'events'
  117. gs 'stat'
  118. if train_event = 0 and rand(1, 100) < 20: gt 'train', 'events'
  119. '<center><img <<$set_imgh>> src="images/locations/shared/train/pavplat.jpg" ></center>'
  120. '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.'
  121. act 'Get off the train':
  122. if train_event = 0 and rand(1, 100) <= 5: gt 'train_incidental', 'end'
  123. gt 'pav_train_hall'
  124. end
  125. end
  126. --- city_train ---------------------------------