pavComplex 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # pavComplex
  2. if $ARGS[0] = 'start':
  3. music_loop = 0
  4. CLOSE ALL
  5. $metka = 'start'
  6. $loc = 'pavcomplex'
  7. $metkaM = 'start'
  8. $locM = 'pavcomplex'
  9. $metkaStreet = 'start'
  10. $locStreet = 'pavcomplex'
  11. $location_type = 'public_outdoors'
  12. if sound = 0:
  13. if month >=11 and month <= 12 or month >=1 and month <=3:
  14. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/zima.mp3',30
  15. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  16. else
  17. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street_leto.mp3',30
  18. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  19. end
  20. end
  21. cls
  22. litltown = 1
  23. alkoblock = 0
  24. boynumBlock = 0
  25. gs 'stat'
  26. '<center><h2>Apartment Complex</h2></center>'
  27. if Enable_towntable = 1 : $_str = '<center><table><tr><td>' else $_str = ''
  28. if month >= 11 or month <= 3:
  29. if hour >= 8 and hour <= 21:
  30. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexw.jpg"></center>'
  31. else
  32. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexwn.jpg"></center>'
  33. end
  34. else
  35. if hour >= 8 and hour <= 21:
  36. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complex.jpg"></center>'
  37. else
  38. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexn.jpg"></center>'
  39. end
  40. end
  41. if StoryLine = 1 and ParHomeBlock = 0:
  42. 'In the old part of Pavlovsk, there''s a block of three apartment buildings. The southern building sits along the main street of the Pavlosk residential area, front and center among the other two apartment complexes that are located behind it, one on each side and named the eastern and western buildings respectively. Your family''s apartment is on the second floor of the southern building.'
  43. *nl
  44. 'The three buildings surround a meager courtyard, which has changed over the years to now include a kid''s playground that occupies most of the small outdoor space. A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
  45. *nl
  46. 'Behind the apartments is a row of garages and storage space for tenants. Your family home is on the second floor there. <<$gcartext>>'
  47. elseif StoryLine = 1:
  48. 'In the old part of Pavlovsk, there''s a block of three apartment buildings. The southern building sits along the main street of the Pavlosk residential area, front and center among the other two apartment complexes that are located behind it, one on each side and named the eastern and western buildings respectively. Your family''s apartment is on the second floor of the southern building.'
  49. *nl
  50. 'The three buildings surround a meager courtyard, which has changed over the years to now include a kid''s playground that occupies most of the small outdoor space. A few benches and tables surround it, and there''s a handful of small utility sheds tucked away in the corner for tenants to use if they''re willing to pay for the extra space.'
  51. *nl
  52. 'Behind the apartments is a row of garages and storage space for tenants. Your parents live here, but you are no longer welcome in their home. <<$gcartext>>'
  53. else
  54. '<<$gcartext>>'
  55. end
  56. if Enable_tablemap = 0:
  57. if storyline = 1:'<a href="exec:minut += 15 & gt ''shulgahome''">The Shulgin family</a> live in the apartment above your parents.'
  58. if ArtemBeInHome > 0 and artemblok = 0:'<a href="exec:minut += 15 & gt ''artemhome''">Artem Chebotarev</a>, one of your classmates, lives in the same apartment building as your parents, on the first floor.'
  59. if BeInJulMilHome = 1:
  60. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  61. '<a href="exec:minut += 15 & gt ''JuliaMilVhod''">Julia Milova</a>, one of your classmates, lives in the same apartment building as your parents, on the third floor.'
  62. else
  63. 'Julia Milova, one of your classmates, lives in the same apartment building as your parents, on the third floor.'
  64. end
  65. end
  66. if BeInNatBelHome = 1:
  67. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  68. '<a href="exec:minut += 15 & gt ''NatBelHome''">Natasha Belova</a>, one of your classmates, lives in the same apartment building as your parents, on the fourth floor.'
  69. else
  70. 'Natasha Belova, one of your classmates, lives in the same apartment building as your parents, on the fourth floor.'
  71. end
  72. end
  73. else
  74. st_count=0 & $show_table=''
  75. if (npc_rel['A112'] >=70) or (npc_rel['A112'] >=30 and week < 6 and hour >= 14 and hour <= 23) or (week >= 6 and hour >= 10 and hour < 14) or (week < 6 and hour >= 14 and hour <= 23) or (hour >= 0 and hour < 2):
  76. gs'show_table','Apartment of Uncle <a href="exec:minut += 15 & GT ''shulgahome''" >Shulgin</a>.','3'
  77. else
  78. gs'show_table','Apartment of Uncle Shulgin. Not now.','3'
  79. end
  80. if ArtemBeInHome > 0 and artemblok = 0:gs'show_table','Apartment of <a href="exec:minut += 15 & gt ''artemhome''">Artem Chebotarev</a>.','3'
  81. if BeInJulMilHome = 1:
  82. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  83. gs'show_table','apartment of <a href="exec:minut += 15 & gt ''JuliaMilHome''">Julia Milova</a>.','3'
  84. else
  85. gs'show_table','apartment of Julia Milova. Not now.','3'
  86. end
  87. end
  88. if BeInNatBelHome = 1:
  89. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  90. gs'show_table','apartment of <a href="exec:minut += 15 & gt ''NatBelHome''">Natasha Belova</a>.','3'
  91. else
  92. gs'show_table','apartment of Natasha Belova. Not now.','3'
  93. end
  94. end
  95. end
  96. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & GT 'korrPar'
  97. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  98. act 'Enter your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  99. act 'Go to the Eastern apartment building':
  100. minut += 3
  101. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  102. gt 'pavComplexb2', 'anushkaFirst'
  103. else
  104. gt 'pavComplexb2', 'etaj_1'
  105. end
  106. end
  107. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  108. act 'Go to the courtyard':minut += 3 & gt 'pavComplex', 'courtyard'
  109. act 'Go to the garages':minut += 3 & gt 'pavComplex', 'garages'
  110. end
  111. if $ARGS[0] = 'courtyard':
  112. *clr
  113. cla
  114. gs 'stat'
  115. '<center>Courtyard</center>'
  116. if month >= 11 or month <= 3:
  117. if hour >= 8 and hour <= 21:
  118. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundw.jpg"></center>'
  119. else
  120. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundwn.jpg"></center>'
  121. end
  122. else
  123. if hour >= 8 and hour <= 21:
  124. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playground.jpg"></center>'
  125. else
  126. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundn.jpg"></center>'
  127. end
  128. end
  129. 'The courtyard is between the three apartment buildings and the communal buildings, storage buildings, and garages along the back alley. The courtyard looks more like a small unkept park than anything, there is a few benches and tables scattered about for the residents of the complex to use and a small children''s playground, near the edge of the courtyard, closest to the communal and storage buildings near the garages.'
  130. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & GT 'korrPar'
  131. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  132. act 'Go to your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  133. act 'Go to the Eastern apartment building':
  134. minut += 3
  135. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  136. gt 'pavComplexb2', 'anushkaFirst'
  137. else
  138. gt 'pavComplexb2', 'etaj_1'
  139. end
  140. end
  141. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  142. act 'Go to the garages':minut += 1 & gt 'pavComplex', 'garages'
  143. end
  144. if $ARGS[0] = 'garages':
  145. *clr & cla
  146. '<center>Garage array</center>'
  147. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/garages.jpg"></center>'
  148. 'Along the back street is a row of garages for rent to the residents of the apartments. The weather in Pavlovsk can be brutal especially in the winter, so people who own a car often have a garage to put it away safely. Between the garages and the courtyard is a series of smaller storage buildings that can be rented as well as the complex maintenance building and laundry. The buildings layout leaves of a bit of a maze of walkways between them, which is a popular place for the kids to play or for teenagers to hang out.'
  149. gs 'stat'
  150. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & gt 'korrPar'
  151. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  152. act 'Go to your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  153. act 'Go to the Eastern apartment building':
  154. minut += 3
  155. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  156. gt 'pavComplexb2', 'anushkaFirst'
  157. else
  158. gt 'pavComplexb2', 'etaj_1'
  159. end
  160. end
  161. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  162. act 'Go to the courtyard':minut += 1 & gt 'pavComplex', 'courtyard'
  163. if StoryLine = 1:'Your <a href="exec:minut += 5 & gt ''gargazel''">stepfather''s garage</a> is around here somewhere.'
  164. if (week < 6 and hour => 18 and hour < 20) or (week >= 6 and hour >= 15 and hour < 18) and seenEd = 0 and rand(0,5) = 0:
  165. 'As you''re walking around the garages, you notice a garage door open. You see a tattooed man working on a bike. He looks really ruff and dangerous. He looks at you smiling, who knows what he''s thinking...'
  166. 'You throw a quick glance towards him, nervously smile at him and quickly move on towards your fathers garage.'
  167. seenEd = 1
  168. end
  169. end
  170. --- pavComplex ---------------------------------