vokzalholle 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # vokzalholle
  2. if $ARGS[0] = '':
  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 src="images/pic/vokzalholle.jpg" ></center>'
  11. 'Go to the <a href="exec:GT ''vokzalper''">platforms</a>'
  12. act 'Leave the station building':gt 'vokzal' & minut+=5
  13. act 'Got to the ticket office': gt 'vokzalholle', 'ticket'
  14. act 'Go to the restrooms':gt 'vokzaltoilet' & minut+=5
  15. end
  16. if $ARGS[0] = 'ticket':
  17. cls
  18. !! This is a lie, but a useful one don''t change the $loc and $metka
  19. $loc = 'vokzalholle'
  20. $metka = 'cottages'
  21. gs 'stat'
  22. '<center><h4>Ticket office</h4></center>'
  23. '<center><img src="images/qwest/alter/kassa.jpg"></center>'
  24. if money >= 50:
  25. act 'Buy a ticket to the city center (50 <b>₽</b>)':
  26. $loc = 'cityTrain'
  27. $metka = 'inside'
  28. cls
  29. money -= 50
  30. minut += 5
  31. gs 'stat'
  32. '<center><img src="images/etogame/electri.jpg"></center>'
  33. 'You pay for the ticket and board the next train going to the city center.'
  34. '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.'
  35. act 'Get off the train at this station':minut += 5 & gt 'cityTrain', 'inside'
  36. end
  37. end
  38. if money >= 50:
  39. act 'Buy a ticket to the old platform by the communal cottages (50 <b>₽</b>)':
  40. train_event = 0
  41. money -= 100
  42. train_dir = 2
  43. train_dest = 3
  44. gt 'vokzalholle', 'cottages'
  45. end
  46. end
  47. if money >= 75:
  48. act 'Buy a ticket to the village of Gadyukino (75 <b>₽</b>)':
  49. train_event = 0
  50. money -= 75
  51. train_dir = 2
  52. train_dest = 4
  53. gt 'vokzalholle', 'cottages'
  54. end
  55. end
  56. if money >= 100:
  57. act 'Buy a ticket to the old town (100 <b>₽</b>)':
  58. train_event = 0
  59. money -= 100
  60. train_dir = 2
  61. train_dest = 5
  62. gt 'vokzalholle', 'cottages'
  63. end
  64. end
  65. if money >= 125:
  66. act 'Buy a ticket to Pavlovsk (125 <b>₽</b>)':
  67. train_event = 0
  68. money -= 125
  69. train_dir = 2
  70. train_dest = 6
  71. if rand(1, 100) < 15: gt 'train', 'private'
  72. gt 'vokzalholle', 'cottages'
  73. end
  74. end
  75. end
  76. if $ARGS[0] = 'cottages':
  77. cls
  78. minut += 10
  79. gs'stat'
  80. '<center><img src="images/etogame/electri.jpg" ></center>'
  81. 'After 10 minutes the train stops at a small station. It''s abandoned, and there is not much activity outside.'
  82. act 'Get off the train at this station': gt 'train', 'old_platform'
  83. if train_dest > 3:
  84. act 'Continue your journey':
  85. gt 'train', 'communalS'
  86. end
  87. end
  88. end
  89. --- vokzalholle ---------------------------------