metro.qsrc 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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 = 'city_residential':
  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 = 'city_center':
  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 = 'city_industrial':
  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 = '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 money >= 16:
  43. if $loc ! 'city_residential':
  44. act 'Go to the <b>Residential Area</b> (16 <b>₽</b>)':
  45. $loc = 'city_residential'
  46. $loc_arg = ''
  47. money -= 16
  48. minut += 10
  49. gt 'metro', 'vagon'
  50. end
  51. end
  52. if $loc ! 'city_center':
  53. act 'Go to the <b>City Center</b> (16 <b>₽</b>)':
  54. $loc = 'city_center'
  55. $loc_arg = ''
  56. money -= 16
  57. minut += 10
  58. gt 'metro', 'vagon'
  59. end
  60. end
  61. if $loc ! 'city_industrial':
  62. act 'Go to the <b>City Industrial Region</b> (16 <b>₽</b>)':
  63. $loc = 'city_industrial'
  64. $loc_arg = ''
  65. money -= 16
  66. minut += 10
  67. gt 'metro', 'vagon'
  68. end
  69. end
  70. if $loc ! 'city_suburbs':
  71. act 'Go to the <b>City Suburbs</b> (16 <b>₽</b>)':
  72. $loc = 'city_suburbs'
  73. $loc_arg = 'start'
  74. money -= 16
  75. minut += 10
  76. gt 'metro', 'vagon'
  77. end
  78. end
  79. if $loc ! 'city_island':
  80. act 'Go to the <b>Vasilyevsky Island</b> (16 <b>₽</b>)':
  81. $loc = 'city_island'
  82. $loc_arg = ''
  83. money -= 16
  84. minut += 10
  85. gt 'metro', 'vagon'
  86. end
  87. end
  88. else
  89. 'You don''t have enough money to pay for the metro.'
  90. end
  91. if pusher = 1 and dealer = 0:
  92. dealer = 1
  93. 'You see a tall, emaciated man leaning against the wall next to the tracks, looking very shady.<br>He notices you looking and beckons you to come closer.'
  94. act 'Talk to the man':gt 'metro', 'dealer'
  95. elseif dealer ! 0:
  96. 'You see the dealer lurking around the station.'
  97. act 'Buy drugs':gt 'metro', 'shop'
  98. end
  99. end
  100. if $ARGS[0] = 'vagon':
  101. *clr & cla
  102. CLOSE ALL
  103. if sound = 0:PLAY 'sound/metro1.mp3',30
  104. gs 'stat'
  105. gs 'themes', 'indoors'
  106. menu_off = 1
  107. '<center><b><font color="maroon">Metro car</font></b></center>'
  108. if hour < 7 or hour >=22:
  109. if rand(0, 100) >= 70:gt 'metro_events', 'frot'
  110. metro_busy = rand(0,1)
  111. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  112. if rand(0, 100) >= 80:gt 'metro_events', 'frot'
  113. metro_busy = rand(1,2)
  114. else
  115. if rand(0, 100) >= 90:gt 'metro_events', 'frot'
  116. metro_busy = rand(2,3)
  117. end
  118. if metro_busy = 0:
  119. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metroempty.jpg"></center>'
  120. '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.'
  121. elseif metro_busy = 1:
  122. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metro.jpg"></center>'
  123. '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.'
  124. elseif metro_busy = 2:
  125. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metrofull<<rand(1,5)>>.jpg"></center>'
  126. 'The car is full of people. All of the seats are taken, but only a few people are forced to stand. At least it is not packed. You easily find a place for yourself, leaving you plenty of room to get comfortable.'
  127. else
  128. '<center><img <<$set_imgh>> src="images/locations/city/shared/metro/metropacked.jpg"></center>'
  129. 'The car is packed with people. Most of them are forced to stand, as there are 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.'
  130. end
  131. if (cumloc[6] = 1 or cumloc[7] = 1) or cumloc[11] = 1:
  132. if hour >= 7 and hour <= 21:
  133. pcs_mood -= 10
  134. 'Several passengers are shocked, noticing the cum smears on you.'
  135. end
  136. end
  137. act 'Get out of the car':
  138. if hour < 7 or hour >=22:
  139. if rand(0, 100) >= 70:gt 'metro_events', 'station'
  140. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  141. if rand(1,100) >= 80:gt 'metro_events', 'station'
  142. else
  143. if rand(1,100) >= 90:gt 'metro_events', 'station'
  144. end
  145. gt 'metro', 'start'
  146. end
  147. end
  148. if $ARGS[0] = 'shop':
  149. *clr & cla
  150. menu_off = 1
  151. gs 'stat'
  152. '<b>What''s it gonna be?</b>'
  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 & mentats_have += 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: <<mentats_have>>'
  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 & steroid_have += 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: <<steroid_have>>'
  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 & bcream_have += 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: <<bcream_have>>'
  175. if MagikDostup = 0:
  176. 'Packet of pink chewing gum. There are 10 in one package.'
  177. if money >= 200:
  178. '<a href="exec:money -= 200 & aphrodisiac_have += 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: <<aphrodisiac_have>>'
  183. end
  184. if money >= 250:
  185. 'Buy enough <a href="exec:money -= 250 & joint += 5 & gt ''metro'', ''shop''">weed</a> for 5 joints for 250 <b>₽</b>'
  186. if money >= 500:'Buy enough <a href="exec:money -= 500 & joint += 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.<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 the 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 time, and I guarantee they won''t kill you."</b>'
  195. act 'Continue':gt 'metro','shop'
  196. end
  197. --- metro ---------------------------------