city_industrial.qsrc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # city_industrial
  2. !!2021/04/23
  3. ! 14-09-22 Added Metro link to navigation line 49
  4. if $ARGS[0] = '':
  5. gs 'shortgs', 'setloc', 'city_industrial', $ARGS[0]
  6. $region = 'city'
  7. $location_type = 'public_outdoors'
  8. menu_off = 0
  9. CLOSE ALL
  10. if sound = 0:
  11. if month >= 11 and month <= 12 or month >= 1 and month <= 3:
  12. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3', 30 & PLAY 'sound/street7.mp3', 30 & PLAY 'sound/zima.mp3', 30
  13. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3', 30 & PLAY 'sound/zima.mp3', 30
  14. else
  15. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3', 30 & PLAY 'sound/street7.mp3', 30 & PLAY 'sound/street_leto.mp3', 30
  16. if hour >= 0 and hour <= 7: PLAY 'sound/street_night_leto.mp3' & PLAY 'sound/street_night.mp3', 30
  17. end
  18. end
  19. gs 'stat'
  20. !call random events from [street_events], and display them before show location.
  21. if streetevent_hour + 2 < hour: gt 'street_event','city_industrial', 'main'
  22. '<center><h2>St. Petersburg</h2></center>'
  23. '<center><b>Industrial Region</b></center>'
  24. if month >= 11 or month <= 3:
  25. if dayStage = 2 or dayStage = 3:
  26. '<center><img <<$set_imgh>> src="images/locations/city/industrial/industw.jpg"></center>'
  27. else
  28. '<center><img <<$set_imgh>> src="images/locations/city/industrial/industwn.jpg"></center>'
  29. end
  30. else
  31. if dayStage = 2 or dayStage = 3:
  32. '<center><img <<$set_imgh>> src="images/locations/city/industrial/nord.jpg"></center>'
  33. else
  34. '<center><img <<$set_imgh>> src="images/locations/city/industrial/nord2.jpg"></center>'
  35. end
  36. end
  37. gs 'street_event','city_industrial', 'extras'
  38. act 'Walk to the main road to Pavlovsk (0:15)': minut += 15 & nroad = 0 & gt'road'
  39. act 'Walk to the Red Light District (0:05)': minut += 5 & gt 'city_redlight', 'start'
  40. act 'Walk to the central park (1:00)': minut += 60 & gt 'city_park', 'start'
  41. act 'Walk to the industrial train station (0:15)': minut += 15 & gt 'city_industrial_train', 'outside'
  42. if hour >= 4 and hour < 23:
  43. act 'Walk to the Metro': minut += 5 & gt 'metro', 'start'
  44. end
  45. if evt_chk = 1:
  46. !! We've got an event today, check it's location:
  47. gs 'emp_functions', 'disp_evt', 3
  48. end
  49. act 'Wait':gs 'obj_din', 'wait'
  50. gs 'taxi'
  51. if car > 0:
  52. if wrek = 0 and ((cardrive = 7 and func('autoservisF', 'is_open') = 0) or (cardrive = 9 and func('autotraidF', 'is_open') = 0)):
  53. 'It looks like the ' + iif(cardrive = 7, 'repair shop', 'car dealership') + ' moved your car outside before they closed.'
  54. cardrive = 3
  55. end
  56. if cardrive = 3 or cardrive = 6 or (cardrive = 7 and func('autoservisF', 'is_open')) or (cardrive = 9 and func('autotraidF', 'is_open')) or cardrive = 27:
  57. 'Your <a href="exec:' + iif(cardrive = 3, '', 'minut += 5 & ') + 'gs ''carF'', ''start''"><<$car>></a> stands in the parking lot.'
  58. end
  59. end
  60. 'The town''s <a href="exec:minut += 60 & gt ''city_park'', ''start''">central park</a> is a one hour walk from here.'
  61. if hour > 7 and hour < 23:
  62. 'You can see the <a href="exec:$loc = ''city_industrial'' & minut += 1 & gt ''kiosk'', ''start''">kiosk</a> selling cigarettes and magazines.'
  63. else
  64. 'The kiosk is closed between 23:00 and 07:00.'
  65. end
  66. 'At the center of the industrial region is a <a href="exec:minut += 15 & gt ''city_industrial_train'', ''outside''">train station</a>.'
  67. if week = 3 or hour < 16:
  68. 'The "Rabotnik" bar is here, but it seems to be closed. A sign by the door tells you that it''s open every day (except Wednesday) between 16:00 and midnight.'
  69. else
  70. 'The <a href="exec: minut += 5 & gt ''qwBarPolet''">Bar "Rabotnik"</a> seems to be open.'
  71. end
  72. ![slavaQW - Related to Glory; references to bar "Flight" have to be fixed - requirement to access the bar has been removed for now, since content not related - Variable not used by anything else at the moment]
  73. litltown = 0
  74. 'There is a <a href="exec: minut += 5 & gt ''zaprF'', ''start''">gas station</a> near the street.'
  75. if hour >= 4 and hour < 23:
  76. 'The <a href="exec: minut += 5 & gt ''metro'', ''start''">metro station</a> is within a 5 minute walk from here.'
  77. else
  78. 'The metro station is within a 5 minute walk from here, but it''s closed until 04:00.'
  79. end
  80. if func('autotraidF', 'is_open'):
  81. 'A <a href="exec: minut += 5 & gt ''autotraidF'', ''start''">car dealership</a> is nearby.'
  82. else
  83. 'A car dealership is nearby' + iif(week = 1, ', but it''s closed on Mondays.', '. It''s currently closed and will open between 09:00 and 18:00.') + iif(car > 0 and cardrive = 9, ' Your <<$car>> is currently locked inside.', '')
  84. end
  85. if func('autoservisF', 'is_open'):
  86. 'Next to the car dealership is a <a href="exec: minut += 5 & gt ''autoservisF'', ''start''">repair shop</a>.'
  87. else
  88. 'Next to the car dealership is a repair shop.' + iif(week = 7, 'It''s closed on Sundays.', 'It will be open between 09:00 and 20:00.') + iif(car > 0 and cardrive = 7, ' Your <<$car>> is currently locked inside.', '')
  89. end
  90. if hour >= 9 and hour < 17 and week < 6:
  91. 'The <a href="exec: minut += 5 & gt ''dk'', ''start''">community centre</a> is currently open.'
  92. else
  93. 'The community centre is currently closed. It''s only open during the week between 09:00 and 17:00.'
  94. end
  95. if hour >= 9 and hour <= 17 and (mid($start_type,1,2) ! 'sg' or SchoolAtestat = 0) or bumtolik > 3:
  96. '<a href="exec: gt ''buklinik'',''start''">Mercy clinic</a> is open.'
  97. elseif (hour < 9 or hour > 17) and (mid($start_type,1,2) ! 'sg' or SchoolAtestat = 0) or bumtolik > 3:
  98. 'Mercy clinic is closed.'
  99. end
  100. if hour >= 8 and hour <= 20:
  101. 'The parking lot, which is engulfed in bright lights, belongs to a <a href="exec: minut += 2 & gt ''shop'', ''start''">supermarket</a>.'
  102. else
  103. 'The empty parking lot, which is engulfed in bright lights, belongs to a supermarket that is open between 08:00 and 20:00'
  104. end
  105. if hour >= 12 and hour <= 19:
  106. 'Above the door to a basement room is a bright neon sign for the <a href="exec: minut += 5 & gt ''pirsingsalon'', ''start''">Tattoo & Piercing parlor</a>.'
  107. else
  108. 'Above the door to a basement room is a bright neon sign for the Tattoo & Piercing parlor. The opening hours are 12:00 to 20:00'
  109. end
  110. if tobiQW >= 1:'The old mansion, home to <a href="exec:gt ''kakuzu'', ''start''">Kakuzu</a>'
  111. if age => 18:
  112. 'A huge building covered in bright lights houses a <a href="exec: minut += 10 & gt ''casino'', ''outside''">casino</a>.'
  113. end
  114. if hour >= 14 or hour < 4:
  115. 'Located far away from the buildings is a <a href="exec: minut += 2 & gt ''lakecafe'', ''main''">barbecue</a>.'
  116. else
  117. 'Located far away from the buildings is a barbecue. It''ll be open between 14:00 and 04:00'
  118. end
  119. if jouryResult = 10: 'You can go to one of the apartment blocks and visit <a href="exec:gt ''youry'',''start''">Yuri</a>.'
  120. if BurgerQW['IlyQWTatianaHelp'] > 0:'In one of these buildings is <a href="exec:gt ''ilyroom''">Ilyushkin''s</a> apartment.'
  121. 'A long and high fence is built around the <a href="exec:gt ''Terminal''">storage terminal</a>.'
  122. end
  123. --- city_industrial ---------------------------------