1
0

pavComplex 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # pavComplex
  2. if $ARGS[0] = 'start':
  3. music_loop = 0
  4. CLOSE ALL
  5. $metka = 'start'
  6. $loc = 'pavcomplex'
  7. $metkaStreet = 'start'
  8. $locStreet = 'pavcomplex'
  9. $location_type = 'public_outdoors'
  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/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/street_leto.mp3',30
  16. if hour >= 0 and hour <= 7:PLAY 'sound/street_night.mp3',30
  17. end
  18. end
  19. cls
  20. litltown = 1
  21. alkoblock = 0
  22. boynumBlock = 0
  23. gs 'stat'
  24. '<center><h2>Apartment Complex</h2></center>'
  25. if Enable_towntable = 1 : $_str = '<center><table><tr><td>' else $_str = ''
  26. if month >= 11 or month <= 3:
  27. if hour >= 8 and hour <= 21:
  28. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexw.jpg"></center>'
  29. else
  30. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexwn.jpg"></center>'
  31. end
  32. else
  33. if hour >= 8 and hour <= 21:
  34. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complex.jpg"></center>'
  35. else
  36. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/complexn.jpg"></center>'
  37. end
  38. end
  39. if StoryLine = 1 and ParHomeBlock = 0:
  40. '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.'
  41. *nl
  42. '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.'
  43. *nl
  44. 'Behind the apartments is a row of garages and storage space for tenants. Your family home is on the second floor there. <<$gcartext>>'
  45. elseif StoryLine = 1:
  46. '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.'
  47. *nl
  48. '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.'
  49. *nl
  50. '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>>'
  51. else
  52. '<<$gcartext>>'
  53. end
  54. if Enable_tablemap = 0:
  55. if storyline = 1:'<a href="exec:minut += 15 & gt ''shulgahome''">The Shulgin family</a> live in the apartment above your parents.'
  56. 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.'
  57. if BeInJulMilHome = 1:
  58. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  59. '<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.'
  60. else
  61. 'Julia Milova, one of your classmates, lives in the same apartment building as your parents, on the third floor.'
  62. end
  63. end
  64. if BeInNatBelHome = 1:
  65. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  66. '<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.'
  67. else
  68. 'Natasha Belova, one of your classmates, lives in the same apartment building as your parents, on the fourth floor.'
  69. end
  70. end
  71. else
  72. st_count=0 & $show_table=''
  73. 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):
  74. gs'show_table','Apartment of Uncle <a href="exec:minut += 15 & GT ''shulgahome''" >Shulgin</a>.','3'
  75. else
  76. gs'show_table','Apartment of Uncle Shulgin. Not now.','3'
  77. end
  78. if ArtemBeInHome > 0 and artemblok = 0:gs'show_table','Apartment of <a href="exec:minut += 15 & gt ''artemhome''">Artem Chebotarev</a>.','3'
  79. if BeInJulMilHome = 1:
  80. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  81. gs'show_table','apartment of <a href="exec:minut += 15 & gt ''JuliaMilHome''">Julia Milova</a>.','3'
  82. else
  83. gs'show_table','apartment of Julia Milova. Not now.','3'
  84. end
  85. end
  86. if BeInNatBelHome = 1:
  87. if hour >= 18 and hour <= 20 and week < 6 or hour >= 8 and hour <= 20 and week >= 6:
  88. gs'show_table','apartment of <a href="exec:minut += 15 & gt ''NatBelHome''">Natasha Belova</a>.','3'
  89. else
  90. gs'show_table','apartment of Natasha Belova. Not now.','3'
  91. end
  92. end
  93. end
  94. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & GT 'korrPar'
  95. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  96. act 'Enter your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  97. act 'Go to the Eastern apartment building':
  98. minut += 3
  99. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  100. gt 'pavComplexb2', 'anushkaFirst'
  101. else
  102. gt 'pavComplexb2', 'etaj_1'
  103. end
  104. end
  105. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  106. act 'Go to the courtyard':minut += 3 & gt 'pavComplex', 'courtyard'
  107. act 'Go to the garages':minut += 3 & gt 'pavComplex', 'garages'
  108. end
  109. if $ARGS[0] = 'courtyard':
  110. *clr
  111. cla
  112. gs 'stat'
  113. '<center>Courtyard</center>'
  114. if month >= 11 or month <= 3:
  115. if hour >= 8 and hour <= 21:
  116. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundw.jpg"></center>'
  117. else
  118. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundwn.jpg"></center>'
  119. end
  120. else
  121. if hour >= 8 and hour <= 21:
  122. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playground.jpg"></center>'
  123. else
  124. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/playgroundn.jpg"></center>'
  125. end
  126. end
  127. '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.'
  128. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & GT 'korrPar'
  129. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  130. act 'Go to your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  131. act 'Go to the Eastern apartment building':
  132. minut += 3
  133. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  134. gt 'pavComplexb2', 'anushkaFirst'
  135. else
  136. gt 'pavComplexb2', 'etaj_1'
  137. end
  138. end
  139. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  140. act 'Go to the garages':minut += 1 & gt 'pavComplex', 'garages'
  141. end
  142. if $ARGS[0] = 'garages':
  143. *clr & cla
  144. '<center>Garage array</center>'
  145. '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/garages.jpg"></center>'
  146. '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.'
  147. gs 'stat'
  148. if StoryLine = 1 and ParHomeBlock = 0: act '<b>GO HOME</b> (Parents'' Apartment)': minut += 5 & gt 'korrPar'
  149. act 'Return to the residential street':minut += 1 & gt 'pavResidential'
  150. act 'Go to your apartment building':minut += 3 & gt 'pod_ezd', 'etaj_1'
  151. act 'Go to the Eastern apartment building':
  152. minut += 3
  153. if anushkaFirstvisit = 0 and npc_rel['A144'] > 50:
  154. gt 'pavComplexb2', 'anushkaFirst'
  155. else
  156. gt 'pavComplexb2', 'etaj_1'
  157. end
  158. end
  159. act 'Go to the Western apartment building':minut += 3 & gt 'pavComplexb3', 'etaj_1'
  160. act 'Go to the courtyard':minut += 1 & gt 'pavComplex', 'courtyard'
  161. if StoryLine = 1:'Your <a href="exec:minut += 5 & gt ''gargazel''">stepfather''s garage</a> is around here somewhere.'
  162. 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:
  163. '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...'
  164. 'You throw a quick glance towards him, nervously smile at him and quickly move on towards your fathers garage.'
  165. seenEd = 1
  166. end
  167. end
  168. --- pavComplex ---------------------------------