metro 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # metro
  2. if $ARGS[0] = 'start':
  3. CLOSE ALL
  4. if sound = 0:PLAY 'sound/metro.mp3',30
  5. '<center><b><font color="maroon">Metro station</font></b></center>'
  6. if $loc = 'street':
  7. '<center><b><font color="maroon">Residential area</font></b></center>'
  8. '<center><img src="images/locations/city/shared/metro/platresident.jpg"></center>'
  9. elseif $loc = 'down':
  10. '<center><b><font color="maroon">City Center</font></b></center>'
  11. '<center><img src="images/locations/city/shared/metro/platcenter.jpg"></center>'
  12. elseif $loc = 'Nord':
  13. '<center><b><font color="maroon">City Industrial Area</font></b></center>'
  14. '<center><img src="images/locations/city/shared/metro/platindust.jpg"></center>'
  15. !!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
  16. elseif $loc = 'psiklin':
  17. '<center><b><font color="maroon">City Suburbs</font></b></center>'
  18. '<center><img src="images/locations/city/shared/metro/platsuburb.jpg"></center>'
  19. !!elseif $loc = 'island': !!for now calling it island, will have to check what we name the file.
  20. !!'<center><b><font color="maroon">Vasilievsky Island</font></b></center>'
  21. !!'<center><img src="images/locations/city/shared/metro/platisland.jpg"></center>'
  22. end
  23. 'Subway fare costs 16 <b>₽</b>.'
  24. minut += 5
  25. clr
  26. gs 'stat'
  27. if night_mode = 1:
  28. fcolor = rgb(255, 255, 255)
  29. bcolor = rgb(0, 0, 0)
  30. lcolor = rgb(106, 90, 205)
  31. else
  32. fcolor = rgb(0, 0, 0)
  33. bcolor = rgb(255, 255, 255)
  34. lcolor = rgb(106, 90, 205)
  35. end
  36. if workDisk = 3 and konvert = 1:
  37. badrand = rand(0, 100)
  38. if badrand >= 80:konvert = 0
  39. end
  40. if money >= 16:
  41. if $loc ! 'street':
  42. act 'Go to the <b>Residential Area</b> (16 <b>₽</b>)':
  43. $loc = 'street'
  44. $metka = ''
  45. money -= 16
  46. gt 'metro', 'vagon'
  47. end
  48. end
  49. if $loc ! 'down':
  50. act 'Go to the <b>City Center</b> (16 <b>₽</b>)':
  51. $loc = 'down'
  52. $metka = ''
  53. money -= 16
  54. gt 'metro', 'vagon'
  55. end
  56. end
  57. if $loc ! 'Nord':
  58. act 'Go to the <b>City Industrial Area</b> (16 <b>₽</b>)':
  59. $loc = 'Nord'
  60. $metka = ''
  61. money -= 16
  62. gt 'metro', 'vagon'
  63. end
  64. end
  65. if $loc ! 'psiklin':
  66. act 'Go to the <b>City Suburbs</b> (16 <b>₽</b>)':
  67. $loc = 'psiklin'
  68. $metka = 'start'
  69. money -= 16
  70. gt 'metro', 'vagon'
  71. end
  72. end
  73. !! if $loc ! 'island':
  74. !! act 'Go to the <b>Vasilievsky Island</b> (16 <b>₽</b>)':
  75. !! $loc = 'island'
  76. !! $metka = ''
  77. !! money -= 16
  78. !! gt 'metro', 'vagon'
  79. !! end
  80. !! end
  81. end
  82. act 'Leave the Metro station':
  83. minut += 5
  84. gt $loc, $metka
  85. end
  86. if pusher = 1 and dealer = 0:
  87. 'You see a tall, emaciated man leaning against the wall next to tracks. Looking very shady.<br>He notices you looking and beckons you closer.'
  88. act 'Talk to the man':gt 'metro', 'dealer'
  89. dealer = 1
  90. elseif dealer ! 0:
  91. 'You see dealer lurking around the station.'
  92. act 'Buy drugs':gt 'metro', 'shop'
  93. end
  94. end
  95. if $ARGS[0] = 'vagon':
  96. cls
  97. CLOSE ALL
  98. if sound = 0:PLAY 'sound/metro1.mp3',30
  99. gs 'stat'
  100. if night_mode = 1:
  101. fcolor = rgb(255, 255, 255)
  102. bcolor = rgb(0, 0, 0)
  103. lcolor = rgb(106, 90, 205)
  104. else
  105. fcolor = rgb(0, 0, 0)
  106. bcolor = rgb(255, 255, 255)
  107. lcolor = rgb(106, 90, 205)
  108. end
  109. '<center><b><font color="maroon">Metro car</font></b></center>'
  110. if hour < 7 or hour >=22:
  111. if rand(0, 100) >= 70:gt 'metro_events', 'frot'
  112. if rand(0,1) = 0:
  113. metro_busy = 0
  114. else
  115. metro_busy = 1
  116. end
  117. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  118. if rand(0, 100) >= 80:gt 'metro_events', 'frot'
  119. if rand(0,1) = 0:
  120. metro_busy = 1
  121. else
  122. metro_busy = 2
  123. end
  124. else
  125. if rand(0, 100) >= 90:gt 'metro_events', 'frot'
  126. if rand(0,1) = 0:
  127. metro_busy = 2
  128. else
  129. metro_busy = 3
  130. end
  131. end
  132. if metro_busy = 0:
  133. '<center><img src="images/locations/city/shared/metro/metroempty.jpg"></center>'
  134. '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.'
  135. elseif metro_busy = 1:
  136. '<center><img src="images/locations/city/shared/metro/metro.jpg"></center>'
  137. '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.'
  138. elseif metro_busy = 2:
  139. '<center><img src="images/locations/city/shared/metro/metrofull<<rand(1,5)>>.jpg"></center>'
  140. '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.'
  141. else
  142. '<center><img src="images/locations/city/shared/metro/metropacked.jpg"></center>'
  143. '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.'
  144. end
  145. end
  146. if sosedQW >= 1:
  147. if hour = 7 or hour = 15:
  148. sosedMetroRand = rand(0, 100)
  149. if sosedMetroRand >= 60 and sosedMetroDay ! daystart:'You notice your neighbor <a href="exec:gt ''TimofeiMetro''">Timothy</a>, in the metro car.'
  150. end
  151. end
  152. if spdirtyc > 0 or spdirtyv > 0:
  153. if hour >= 7 and hour <= 21:
  154. pcs_mood -= 10
  155. 'Several passengers are shocked, looking at the cum smears on you.'
  156. end
  157. end
  158. act 'Get out of the car':
  159. if hour < 7 or hour >=22:
  160. if rand(0, 100) >= 70:gt 'metro_events', 'station'
  161. elseif (hour >= 9 and hour < 16) or (hour >= 18 and hour < 22):
  162. if rand(1,100) >= 80:gt 'metro_events', 'station'
  163. else
  164. if rand(1,100) >= 90:gt 'metro_events', 'station'
  165. end
  166. gt 'metro', 'start'
  167. end
  168. end
  169. if $ARGS[0] = 'shop':
  170. cls
  171. '<b>What''s it gonna be?</b>'
  172. 'Small box filled with red and blue pills. There is about two dozen of each pill inside.'
  173. if money >= 1000:
  174. '<a href="exec:money - 1000 & mentats_have += 20 & gt ''metro'', ''shop''">Buy neuroboosters</a> 1000 <b>₽</b>'
  175. else
  176. 'Buy neuroboosters 1000 <b>₽</b> (You do not have enough money)'
  177. end
  178. 'Uses left: <<mentats_have>>'
  179. 'Nondescript box with 10 orange pills inside.'
  180. if money >= 1000:
  181. '<a href="exec:money - 500 & steroid_have += 10 & gt ''metro'', ''shop''">Buy steroids</a> 500 <b>₽</b>'
  182. else
  183. 'Buy steroids 500 <b>₽</b> (You do not have enough money)'
  184. end
  185. 'Uses left: <<steroid_have>>'
  186. 'Paste tube with two pictures of a woman. In latter one she sports enormous bust.'
  187. if money >= 1000:
  188. '<a href="exec:money - 500 & bcream_have += 5 & gt ''metro'', ''shop''">Buy breast cream</a> 500 <b>₽</b>'
  189. else
  190. 'Buy breast cream 500 <b>₽</b> (You do not have enough money)'
  191. end
  192. 'Uses left: <<bcream_have>>'
  193. if MagikDostup = 0:
  194. 'Packet of pink chewing gums. There are 10 in one package.'
  195. if money >= 1000:
  196. '<a href="exec:money - 200 & aphrodisiac_have += 10 & gt ''metro'', ''shop''">Buy aphrodisiacs</a> 200 <b>₽</b>'
  197. else
  198. 'Buy aphrodisiacs 200 <b>₽</b> (You do not have enough money)'
  199. end
  200. 'Uses left: <<aphrodisiac_have>>'
  201. end
  202. act 'back':gt 'metro','start'
  203. end
  204. if $ARGS[0] = 'dealer':
  205. cls
  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 product is much better. Great times and guaranteed not to kill you."</b>'
  207. act 'Continue':gt 'metro','shop'
  208. end
  209. --- metro ---------------------------------