metro.qsrc 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # metro
  2. if $ARGS[0] = 'start':
  3. CLOSE ALL
  4. $menu_loc = 'metro'
  5. $menu_arg = 'start'
  6. $location_type = 'public_indoors'
  7. menu_off = 0
  8. if sound = 0: PLAY 'sound/metro' + rand(1,4) + '.mp3', 30
  9. '<center><b><font color="maroon">Metro station</font></b></center>'
  10. if $loc = 'city_residential':
  11. '<center><b><font color="maroon">Residential Area</font></b></center>'
  12. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/platresident.jpg"></center>'
  13. elseif $loc = 'city_center':
  14. '<center><b><font color="maroon">City Center</font></b></center>'
  15. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/platcenter.jpg"></center>'
  16. elseif $loc = 'city_industrial':
  17. '<center><b><font color="maroon">City Industrial Region</font></b></center>'
  18. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/platindust.jpg"></center>'
  19. elseif $loc = 'city_suburbs':
  20. '<center><b><font color="maroon">City Suburbs</font></b></center>'
  21. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/platsuburb.jpg"></center>'
  22. elseif $loc = 'city_island':
  23. '<center><b><font color="maroon">Vasilyevsky Island</font></b></center>'
  24. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/platisland.jpg"></center>'
  25. end
  26. 'The metro fare costs 16 <b>₽</b>.'
  27. clr
  28. gs 'stat'
  29. gs 'themes', 'indoors'
  30. if workDisk = 3 and konvert = 1:
  31. badrand = rand(0, 100)
  32. if badrand >= 80:konvert = 0
  33. end
  34. act 'Leave the Metro station':
  35. if $loc = 'city_suburbs':
  36. minut += 20
  37. else
  38. minut += 5
  39. end
  40. gt $loc, $loc_arg
  41. end
  42. if $loc = 'city_suburbs': act 'Walk to the bus stop (0:15)': minut += 15 & gt 'bus', 'suburbs'
  43. if money >= 16:
  44. if $loc ! 'city_residential':
  45. act 'Go to the Residential Area (00:10 - 16 <b>₽</b>)':
  46. $loc = 'city_residential'
  47. $loc_arg = ''
  48. money -= 16
  49. minut += 10
  50. gt 'metro', 'vagon'
  51. end
  52. end
  53. if $loc ! 'city_center':
  54. act 'Go to the City Center (00:10 - 16 <b>₽</b>)':
  55. $loc = 'city_center'
  56. $loc_arg = ''
  57. money -= 16
  58. minut += 10
  59. gt 'metro', 'vagon'
  60. end
  61. end
  62. if $loc ! 'city_industrial':
  63. act 'Go to the City Industrial Region (00:10 - 16 <b>₽</b>)':
  64. $loc = 'city_industrial'
  65. $loc_arg = ''
  66. money -= 16
  67. minut += 10
  68. gt 'metro', 'vagon'
  69. end
  70. end
  71. if $loc ! 'city_suburbs':
  72. act 'Go to the City Suburbs (00:10 - 16 <b>₽</b>)':
  73. $loc = 'city_suburbs'
  74. $loc_arg = 'start'
  75. money -= 16
  76. minut += 10
  77. gt 'metro', 'vagon'
  78. end
  79. end
  80. if $loc ! 'city_island':
  81. act 'Go to Vasilyevsky Island (00:10 - 16 <b>₽</b>)':
  82. $loc = 'city_island'
  83. $loc_arg = ''
  84. money -= 16
  85. minut += 10
  86. gt 'metro', 'vagon'
  87. end
  88. end
  89. else
  90. 'You don''t have enough money to pay for the metro.'
  91. end
  92. if pusher = 1 and dealer = 0:
  93. dealer = 1
  94. 'You see a tall, emaciated man leaning against the wall next to the tracks, looking very shady. He notices you looking and beckons you to come closer.'
  95. act 'Talk to the man':gt 'metro', 'dealer'
  96. elseif dealer ! 0:
  97. 'You see the dealer lurking around the station.'
  98. act 'Buy drugs':gt 'metro', 'shop'
  99. end
  100. end
  101. if $ARGS[0] = 'vagon':
  102. *clr & cla
  103. CLOSE ALL
  104. if sound = 0:PLAY 'sound/metro1.mp3',30
  105. gs 'stat'
  106. gs 'themes', 'indoors'
  107. menu_off = 1
  108. '<center><b><font color="maroon">Metro car</font></b></center>'
  109. if hour < 7 or hour >= 22:
  110. if rand(0, 100) >= 70: gt 'metro_events', 'frot'
  111. metro_busy = rand(0,1)
  112. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  113. if rand(0, 100) >= 80: gt 'metro_events', 'frot'
  114. metro_busy = rand(1,2)
  115. else
  116. if rand(0, 100) >= 90: gt 'metro_events', 'frot'
  117. metro_busy = rand(2,3)
  118. end
  119. if metro_busy = 0:
  120. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metroempty.jpg"></center>'
  121. 'The car is almost completely empty, with only one or two other passengers in the car with you. It seems a bit odd and a little creepy seeing the car this empty. Having practically the entire car to yourself, you pick the cleanest spot to sit.'
  122. elseif metro_busy = 1:
  123. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metro.jpg"></center>'
  124. 'The car is mostly empty, leaving you a choice of seats. You easily find a place for yourself, leaving you plenty of room to get comfortable. The few other people on the car mind their own business, leaving you to your own thoughts.'
  125. elseif metro_busy = 2:
  126. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metrofull<<rand(1,5)>>.jpg"></center>'
  127. 'The car is full of people. All the seats are taken, but only a few people are forced to stand. You easily find a place for yourself, leaving you plenty of room to get comfortable.'
  128. else
  129. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metropacked.jpg"></center>'
  130. 'The car is packed with people, most of them being forced to stand since there aren''t enough seats. It''s so tightly packed that people are crammed up tightly against each other, but you manage to squeeze yourself in. You can feel other bodies pressed up tightly against yours, making for a very uncomfortable journey.'
  131. end
  132. if (cumloc[6] = 1 or cumloc[7] = 1) or cumloc[11] = 1:
  133. if hour >= 7 and hour <= 21:
  134. pcs_mood -= 10
  135. 'Several passengers are shocked, noticing the cum smears on you.'
  136. end
  137. end
  138. act 'Get out of the car':
  139. if hour < 7 or hour >= 22:
  140. if rand(0, 100) >= 70: gt 'metro_events', 'station'
  141. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  142. if rand(1,100) >= 80: gt 'metro_events', 'station'
  143. else
  144. if rand(1,100) >= 90: gt 'metro_events', 'station'
  145. end
  146. gt 'metro', 'start'
  147. end
  148. end
  149. if $ARGS[0] = 'shop':
  150. *clr & cla
  151. menu_off = 1
  152. gs 'stat'
  153. 'He shows you a small box filled with red and blue pills. There are about two dozen of each pill inside.'
  154. act 'Leave':gt 'metro','start'
  155. if money >= 1000:
  156. '<a href="exec:money -= 1000 & mc_inventory[''mentats''] += 20 & gt ''metro'', ''shop''">Buy neuroboosters</a> 1000 <b>₽</b>'
  157. else
  158. 'Buy neuroboosters 1000 <b>₽</b> (You do not have enough money)'
  159. end
  160. 'Uses left: <<mc_inventory[''mentats'']>>'
  161. 'A pillbox with 10 orange pills inside, the description is removed from the box.'
  162. if money >= 500:
  163. '<a href="exec:money -= 500 & mc_inventory[''steroids''] += 10 & gt ''metro'', ''shop''">Buy steroids</a> 500 <b>₽</b>'
  164. else
  165. 'Buy steroids 500 <b>₽</b> (You do not have enough money)'
  166. end
  167. 'Uses left: <<mc_inventory[''steroids'']>>'
  168. 'Paste tube with two pictures of a woman. In the latter one, she sports an enormous bust.'
  169. if money >= 500:
  170. '<a href="exec:money -= 500 & mc_inventory[''breastcream''] += 5 & gt ''metro'', ''shop''">Buy breast cream</a> 500 <b>₽</b>'
  171. else
  172. 'Buy breast cream 500 <b>₽</b> (You do not have enough money)'
  173. end
  174. 'Uses left: <<mc_inventory[''breastcream'']>>'
  175. if $start_type[1] ! 'nomagic':
  176. 'Packet of pink chewing gum. There are 10 in one package.'
  177. if money >= 200:
  178. '<a href="exec:money -= 200 & mc_inventory[''aphrodisiac''] += 10 & gt ''metro'', ''shop''">Buy aphrodisiacs</a> 200 <b>₽</b>'
  179. else
  180. 'Buy aphrodisiacs 200 <b>₽</b> (You do not have enough money)'
  181. end
  182. 'Uses left: <<mc_inventory[''aphrodisiac'']>>'
  183. end
  184. if money >= 250:
  185. 'Buy enough <a href="exec:money -= 250 & mc_inventory[''joints''] += 5 & gt ''metro'', ''shop''">weed</a> for 5 joints for 250 <b>₽</b>'
  186. if money >= 500: 'Buy enough <a href="exec:money -= 500 & mc_inventory[''joints''] += 10 & gt ''metro'', ''shop''">weed</a> for 10 joints for 500 <b>₽</b>'
  187. else
  188. 'Buy enough weed for 5 joints for 250 <b>₽</b> (You do not have enough money)'
  189. end
  190. end
  191. if $ARGS[0] = 'dealer':
  192. *clr & cla
  193. menu_off = 1
  194. 'He sizes you up with suspicion. "Hey there. Saw you buying Lady in the park." He clears his throat and spits onto the tracks. "That shit will mess you up."'
  195. 'He opens his coat and you flinch, thinking he''s going to flash you, but instead see that he''s wearing a business suit underneath.'
  196. 'He gestures at numerous pockets lining the insides of his coat, filled to bursting with various packages, pills and ampules. "Here, my products are of a much better quality. You''ll have a great time, and I guarantee they won''t kill you."'
  197. act 'Continue': gt 'metro','shop'
  198. end
  199. --- metro ---------------------------------