1
0

city_industrial_train.qsrc 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. # city_industrial_train
  2. !2021/05/06
  3. if $ARGS[0] = 'inside':
  4. $loc_arg = 'inside'
  5. $loc = 'city_industrial_train'
  6. $menu_loc = 'city_industrial_train'
  7. $menu_arg = 'inside'
  8. menu_off = 0
  9. $location_type = 'public_indoors'
  10. killvar '$locclass'
  11. CLOSE ALL
  12. if sound = 0:PLAY 'sound/vokzal.mp3',30
  13. *clr & cla
  14. gs'stat'
  15. '<center><img <<$set_imgh>> src="images/locations/shared/train/vokzalholle.jpg" ></center>'
  16. act 'Leave the station': minut += 2 & gt 'city_industrial_train', 'outside'
  17. *nl
  18. if transportVars['trainpass_day'] > daystart:
  19. func('transport_functions', 'display_trainpass_time')
  20. act 'Go to the platforms': gt 'city_industrial_train', 'platform'
  21. else
  22. act 'Go to the ticket office': minut += 1 & gt 'city_industrial_train', 'ticket'
  23. end
  24. act 'Go to the restrooms': minut += 1 & gt 'city_industrial_train', 'toilet'
  25. end
  26. if $ARGS[0] = 'outside':
  27. $loc_arg = 'outside'
  28. $loc = 'city_industrial_train'
  29. $menu_loc = 'city_industrial_train'
  30. $menu_arg = 'outside'
  31. menu_off = 0
  32. $location_type = 'public_outdoors'
  33. *clr & cla
  34. gs'stat'
  35. '<center><B>Railway station</B></center>'
  36. if month >= 11 or month <= 3:
  37. if hour >= 9 and hour <= 16:
  38. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_winter_day.jpg"></center>'
  39. else
  40. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_winter_night.jpg"></center>'
  41. end
  42. else
  43. if hour >= 7 and hour <= 18:
  44. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_day.jpg"></center>'
  45. else
  46. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/pavtrainstation_night.jpg"></center>'
  47. end
  48. end
  49. if car > 0 and cardrive = 19:
  50. cardrive = 19
  51. 'In the parking lot is <a href="exec:GS ''carF'',''start''">your <<$car>></a>.'
  52. end
  53. 'There is a path leading off in to the distance, in the direction of the <a href="exec:minut += 60 & gt ''city_lake'', ''start''">lake</a>.'
  54. act 'Walk to the City Industrial Region': minut += 15 & gt 'city_industrial'
  55. act 'Walk to the lake': minut += 60 & gt 'city_lake', 'start'
  56. act 'Enter the station building': minut += 2 & gt 'city_industrial_train', 'inside'
  57. end
  58. if $ARGS[0] = 'platform':
  59. $loc_arg = 'platform'
  60. $loc = 'city_industrial_train'
  61. $menu_loc = 'city_industrial_train'
  62. $menu_arg = 'inside'
  63. menu_off = 0
  64. $location_type = 'public_outdoors'
  65. *clr & cla
  66. gs 'stat'
  67. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/vokzalper.jpg" ></center>'
  68. '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.'
  69. *nl
  70. gs 'transport_functions', 'set_train_wait_time', 'ind'
  71. 'The next train in the direction of the city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  72. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  73. act 'Return to the station': minut += 5 & gt 'city_industrial_train', 'inside'
  74. act 'Look at the train schedule':
  75. *clr & cla
  76. gs 'transport_functions', 'display_train_schedule'
  77. *nl
  78. *nl
  79. gs 'transport_functions', 'display_train_schedule', 'pc'
  80. act 'Stop looking at the schedule': gt 'city_industrial_train', 'inside'
  81. end
  82. if transportVars['trainpass_day'] > daystart:
  83. act 'Take a train to the city center (<<func(''transport_functions'', ''display_train_timecost'', ''ind'', ''center'')>>)': gt 'train', 'ind_center'
  84. act 'Take a train to the old platform by the communal village (<<func(''transport_functions'', ''display_train_timecost'', ''ind'', ''communal'')>>)': gt 'train', 'ind_communal'
  85. act 'Take a train to the village of Gadukino (<<func(''transport_functions'', ''display_train_timecost'', ''ind'', ''gadukino'')>>)': gt 'train', 'ind_gadukino'
  86. act 'Take a train to Pavlovsk (<<func(''transport_functions'', ''display_train_timecost'', ''ind'', ''pavlovsk'')>>)': gt 'train', 'ind_pavlovsk'
  87. end
  88. end
  89. if $ARGS[0] = 'ticket':
  90. $menu_loc = 'city_industrial_train'
  91. $menu_arg = 'ticket'
  92. menu_off = 0
  93. *clr & cla
  94. gs 'stat'
  95. '<center><h4>Ticket office</h4></center>'
  96. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/trainstation/ticketoffice.jpg"></center>'
  97. *nl
  98. gs 'transport_functions', 'set_train_wait_time', 'ind'
  99. 'The next train in the direction of the city center ' + iif(temp_transportVars['train_wait_center'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_center'']>> minutes.')
  100. 'The next train in the direction of Pavlovsk ' + iif(temp_transportVars['train_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<temp_transportVars[''train_wait_pavlovsk'']>> minutes.')
  101. act 'Leave the ticket office':minut += 1 & gt 'city_industrial_train', 'inside'
  102. act 'Look at the train schedule':
  103. *clr & cla
  104. gs 'transport_functions', 'display_train_schedule'
  105. *nl
  106. *nl
  107. gs 'transport_functions', 'display_train_schedule', 'pc'
  108. act 'Stop looking at the schedule': gt 'city_industrial_train', 'ticket'
  109. end
  110. if money >= 50:
  111. act 'Buy a ticket':
  112. cla
  113. gs 'city_industrial_train', 'buy_ticket'
  114. end
  115. end
  116. gs 'transport_functions', 'buy_train_pass'
  117. end
  118. if $ARGS[0] = 'buy_ticket':
  119. $menu_loc = 'city_industrial_train'
  120. $menu_arg = 'buy_ticket'
  121. menu_off = 0
  122. act 'Leave the ticket office': gt 'city_industrial_train', 'inside'
  123. gs 'transport_functions', 'buy_train_ticket', 'ind'
  124. end
  125. if $ARGS[0] = 'toilet':
  126. $locM_arg = 'toilet'
  127. $locM = 'city_industrial_train'
  128. $loc_arg = 'toilet'
  129. $loc = 'city_industrial_train'
  130. $menu_loc = 'city_industrial_train'
  131. $menu_arg = 'inside'
  132. menu_off = 0
  133. $location_type = 'bathroom'
  134. $locclass = 'restroom'
  135. *clr & cla
  136. gs'stat'
  137. gs 'themes', 'indoors'
  138. '<center><img <<$set_imgh>> src="images/locations/shared/bathroom/publictoilet.jpg"></center>'
  139. act 'Return to the station': minut += 1 & gt 'city_industrial_train', 'inside'
  140. act 'Look in the mirror': gt 'mirror', 'start'
  141. if pcs_hairbsh < 1: act 'Brush your hair': gt 'mirror', 'brush'
  142. dynamic $tampon
  143. dynamic $quickwash
  144. dynamic $basin
  145. dynamic $publicpan
  146. end
  147. killvar 'temp_transportVars'
  148. --- city_industrial_train ---------------------------------