1
0

metro.qsrc 8.3 KB

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