379_carF 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. # carF
  2. $enddrive = {
  3. if cardrive = 1: gt 'street'
  4. if cardrive = 2: gt 'down'
  5. if cardrive = 3: gt 'Nord'
  6. if cardrive = 4: gt 'lake','start'
  7. if cardrive = 5: gt 'park','start'
  8. if cardrive = 6: gt 'zaprF','start'
  9. if cardrive = 7: gt 'autoservisF','start'
  10. if cardrive = 8: gt 'autosalonF','start'
  11. if cardrive = 9: gt 'autotraidF','start'
  12. if cardrive = 10: gt 'park','whore'
  13. if cardrive = 11: gt 'sauna'
  14. if cardrive = 12: gt 'obekt'
  15. if cardrive = 17: gt 'dachi'
  16. if cardrive = 18: gt 'youplace'
  17. if cardrive = 19: gt 'road'
  18. if cardrive = 20: gt 'gorodok'
  19. if cardrive = 21: gt 'zaprF','start'
  20. }
  21. if $ARGS[0] = 'start':
  22. $metka = $ARGS[0]
  23. $loc = $CURLOC
  24. cla
  25. *clr
  26. gs 'stat'
  27. set minut += 1
  28. clr
  29. fcolor = rgb(0,0,0)
  30. bcolor = rgb(255,255,255)
  31. LCOLOR = rgb(106,90,205)
  32. '<center><b><<$car>></b></center>'
  33. *nl
  34. if car = 1: '<center><img src="images\picar\car.jpg"></center>'
  35. if car = 2: '<center><img src="images\picar\car2.jpg"></center>'
  36. if car = 3: '<center><img src="images\picar\car3.jpg"></center>'
  37. if car = 4: '<center><img src="images\picar\car4.jpg"></center>'
  38. if car = 5: '<center><img src="images\picar\car5.jpg"></center>'
  39. if car = 6: '<center><img src="images\picar\car6.jpg"></center>'
  40. if car = 7: '<center><img src="images\picar\car7.jpg"></center>'
  41. if car = 8: '<center><img src="images\picar\car8.jpg"></center>'
  42. if car = 9: '<center><img src="images\picar\car9.jpg"></center>'
  43. if car = 10: '<center><img src="images\picar\car10.jpg"></center>'
  44. if car = 11: '<center><img src="images\picar\car11.jpg"></center>'
  45. if car = 12: '<center><img src="images\picar\car12.jpg"></center>'
  46. if car = 13: '<center><img src="images\picar\car13.jpg"></center>'
  47. if car = 14: '<center><img src="images\picar\car14.jpg"></center>'
  48. if car = 15: '<center><img src="images\picar\car15.jpg"></center>'
  49. if car = 16: '<center><img src="images\picar\car16.jpg"></center>'
  50. if car = 17: '<center><img src="images\picar\car17.jpg"></center>'
  51. if car = 18: '<center><img src="images\picar\car18.jpg"></center>'
  52. if car = 19: '<center><img src="images\picar\car19.jpg"></center>'
  53. if car = 20: '<center><img src="images\picar\car20.jpg"></center>'
  54. if car = 21: '<center><img src="images\picar\car21.jpg"></center>'
  55. if car = 22: '<center><img src="images\picar\car22.jpg"></center>'
  56. if car = 23: '<center><img src="images\picar\car23.jpg"></center>'
  57. if car = 24: '<center><img src="images\picar\car24.jpg"></center>'
  58. if car = 25: '<center><img src="images\picar\car25.jpg"></center>'
  59. if car = 26: '<center><img src="images\picar\car26.jpg"></center>'
  60. if car = 27: '<center><img src="images\picar\car27.jpg"></center>'
  61. if car = 28: '<center><img src="images\picar\car28.jpg"></center>'
  62. if car = 29: '<center><img src="images\picar\car29.jpg"></center>'
  63. if car = 30: '<center><img src="images\picar\car30.jpg"></center>'
  64. if car = 95: '<center><img src="images\picar\car95.jpg"></center>'
  65. if car = 96: '<center><img src="images\picar\car96.jpg"></center>'
  66. if car = 97: '<center><img src="images\picar\car97.jpg"></center>'
  67. if car = 98: '<center><img src="images\picar\car98.jpg"></center>'
  68. if car = 99: '<center><img src="images\picar\car99.jpg"></center>'
  69. if car = 100: '<center><img src="images\picar\car100.jpg"></center>'
  70. act 'Move away from the machine': dynamic $enddrive
  71. if kanistra > 0:
  72. 'In the trunk <<kanistra>> pc. five-liter jerry cans of gasoline.'
  73. if benz <= 35:
  74. act 'Pour canister into the tank':
  75. cla
  76. set benz += 5
  77. set kanistra -= 1
  78. 'You filled canister of gasoline in the tank.'
  79. act 'Move away': gt 'carF','start'
  80. end
  81. end
  82. end
  83. act 'Get in the car': gt 'carF','salon'
  84. end
  85. if $ARGS[0] = 'salon':
  86. $metka = $ARGS[0]
  87. $loc = $CURLOC
  88. cla
  89. *clr
  90. gs 'stat'
  91. set minut += 1
  92. clr
  93. '<center><b><<$car>></b></center>'
  94. *nl
  95. if car = 1: '<center><img src="images\picar\salon.jpg"></center>'
  96. if car = 2: '<center><img src="images\picar\salon2.jpg"></center>'
  97. if car = 3: '<center><img src="images\picar\salon3.jpg"></center>'
  98. if car = 4: '<center><img src="images\picar\salon4.jpg"></center>'
  99. if car = 5: '<center><img src="images\picar\salon5.jpg"></center>'
  100. if car = 6: '<center><img src="images\picar\salon6.jpg"></center>'
  101. if car = 7: '<center><img src="images\picar\salon7.jpg"></center>'
  102. if car = 8: '<center><img src="images\picar\salon8.jpg"></center>'
  103. if car = 9: '<center><img src="images\picar\salon9.jpg"></center>'
  104. if car = 10: '<center><img src="images\picar\salon10.jpg"></center>'
  105. if car = 11: '<center><img src="images\picar\salon11.jpg"></center>'
  106. if car = 12: '<center><img src="images\picar\salon12.jpg"></center>'
  107. if car = 13: '<center><img src="images\picar\salon13.jpg"></center>'
  108. if car = 14: '<center><img src="images\picar\salon14.jpg"></center>'
  109. if car = 15: '<center><img src="images\picar\salon15.jpg"></center>'
  110. if car = 16: '<center><img src="images\picar\salon16.jpg"></center>'
  111. if car = 17: '<center><img src="images\picar\salon17.jpg"></center>'
  112. if car = 18: '<center><img src="images\picar\salon18.jpg"></center>'
  113. if car = 19: '<center><img src="images\picar\salon19.jpg"></center>'
  114. if car = 20: '<center><img src="images\picar\salon20.jpg"></center>'
  115. if car = 21: '<center><img src="images\picar\salon21.jpg"></center>'
  116. if car = 22: '<center><img src="images\picar\salon22.jpg"></center>'
  117. if car = 23: '<center><img src="images\picar\salon23.jpg"></center>'
  118. if car = 24: '<center><img src="images\picar\salon24.jpg"></center>'
  119. if car = 25: '<center><img src="images\picar\salon25.jpg"></center>'
  120. if car = 26: '<center><img src="images\picar\salon26.jpg"></center>'
  121. if car = 27: '<center><img src="images\picar\salon27.jpg"></center>'
  122. if car = 28: '<center><img src="images\picar\salon28.jpg"></center>'
  123. if car = 29: '<center><img src="images\picar\salon29.jpg"></center>'
  124. if car = 30: '<center><img src="images\picar\salon30.jpg"></center>'
  125. if car = 95: '<center><img src="images\picar\salon95.jpg"></center>'
  126. if car = 96: '<center><img src="images\picar\salon96.jpg"></center>'
  127. if car = 97: '<center><img src="images\picar\salon97.jpg"></center>'
  128. if car = 98: '<center><img src="images\picar\salon98.jpg"></center>'
  129. if car = 99: '<center><img src="images\picar\salon99.jpg"></center>'
  130. if car = 100: '<center><img src="images\picar\salon100.jpg"></center>'
  131. 'Gasoline - <<benz>>l, fuel tank capacity of 40 liters.'
  132. if teh <= 0: set teh = 0 & set wrek = 1
  133. if wrek = 1 or teh <= 0: set $teh = 'Car will not start, it needs repairs.'
  134. if teh >= tehcar * 75/100 and wrek = 0: set $teh = 'Machine in excellent condition.'
  135. if teh < tehcar*75/100 and teh >= tehcar * 50/100 and wrek = 0: set $teh = 'When moving the machine you have any noises'
  136. if teh < tehcar*50/100 and teh >= tehcar * 25/100 and wrek = 0: set $teh = 'Car crash and barely rides.'
  137. if teh < tehcar*25/100 and wrek = 0: set $teh = 'As this bowl can still go, is a mystery even to the designers.'
  138. '<<$teh>>'
  139. if cardrive = 1: 'Through the windshield you see the residential area.'
  140. if cardrive = 2: 'Through the windshield you see downtown.'
  141. if cardrive = 3: 'Through the windshield you see the northern region.'
  142. if cardrive = 4: 'Through the windshield you see the lake.'
  143. if cardrive = 5: 'Through the windshield you see the park.'
  144. if cardrive = 17: 'Through the windshield you see a holiday village.'
  145. if cardrive = 20: 'Through the windshield, you can see the town.'
  146. if prava = 0: 'You have no rights.'
  147. act 'Out of the car': dynamic $enddrive
  148. if benz > 0 and wrek = 0 and prava > 0:
  149. if teh >= tehcar * 75/100 and wrek = 0:
  150. set wrekrand = RAND(0,1000)
  151. if wrekrand = 1000: set wrek = 1
  152. end
  153. if teh < tehcar*75/100 and teh >= tehcar * 50/100 and wrek = 0:
  154. set wrekrand = RAND(0,100)
  155. if wrekrand = 100: set wrek = 1
  156. end
  157. if teh < tehcar*50/100 and teh >= tehcar * 25/100 and wrek = 0:
  158. set wrekrand = RAND(0,100)
  159. if wrekrand >= 80: set wrek = 1
  160. end
  161. if teh < tehcar*25/100 and wrek = 0:
  162. set wrekrand = RAND(0,100)
  163. if wrekrand >= 40: set wrek = 1
  164. end
  165. if wrek = 1:
  166. 'Something clattered loudly and the engine stalled.'
  167. act 'Fuck': gt 'carF','salon'
  168. end
  169. if alko > 0:
  170. dpsrand = RAND(0,100)
  171. if dpsrand <= alko:
  172. 'Policeman stops you, he looks at your condition and requests to breath into a tube. You breathe and instrument panel lights red lamochka.'
  173. 'Traffic police snorts and writes something in his cell, and then shows you. There is written sms with the number 50000'
  174. 'Or let´s make the report. Now operates divestment forever for driving not sober.'
  175. if money >= 50000:
  176. act 'Give a bribe of 50 pieces':
  177. cla
  178. money = money - 50000
  179. 'You pay and the policeman warns you that you will not be riding in this state.'
  180. act 'In the salon': gt 'carF','salon'
  181. end
  182. end
  183. act 'Come on, all under the law':
  184. cla
  185. prava = 0
  186. 'Disempower you, not for driving sober.'
  187. act 'In the salon': gt 'carF','salon'
  188. end
  189. exit
  190. end
  191. end
  192. if alko >= 10:
  193. avarand = RAND(0,100)
  194. if avarand >= 50:
  195. teh = teh/2
  196. wrek = 1
  197. 'You with a drunk crashed into a tree, breaking the car into pieces.'
  198. act 'In the salon': gt 'carF','salon'
  199. exit
  200. end
  201. end
  202. if wrek = 0:
  203. if cardrive >= 20:
  204. if cardrive ! 3:
  205. act 'Go to town':
  206. cla
  207. set minut += 75
  208. set benz -= 1
  209. set teh -= RAND(3,6)
  210. set cardrive = 3
  211. 'You are more than an hour drive on the highway that would get here before the city.'
  212. dynamic $enddrive
  213. end
  214. end
  215. if cardrive ! 21:
  216. act 'Go to the gas station':
  217. cla
  218. set minut += 15
  219. set benz -= 1
  220. set teh -= RAND(1,3)
  221. set cardrive = 21
  222. 'You get 15 minutes to the destination.'
  223. dynamic $enddrive
  224. end
  225. end
  226. end
  227. if placeMansion > 0 and cardrive ! 18:
  228. act 'Go to your site':
  229. cla
  230. if cardrive >= 20:
  231. set minut += 60
  232. set benz -= 1
  233. set teh -= RAND(1,3)
  234. set cardrive = 18
  235. else
  236. set minut += 15
  237. set benz -= 1
  238. set teh -= RAND(1,3)
  239. set cardrive = 18
  240. end
  241. 'You drive to the town.'
  242. dynamic $enddrive
  243. end
  244. end
  245. if dachaest > 0 and cardrive ! 17:
  246. act 'Go to the country':
  247. cla
  248. if cardrive >= 20:
  249. set minut += 60
  250. set benz -= 1
  251. set teh -= RAND(1,3)
  252. set cardrive = 17
  253. else
  254. set minut += 20
  255. set benz -= 1
  256. set teh -= RAND(1,3)
  257. set cardrive = 17
  258. end
  259. 'You drive to the village.'
  260. dynamic $enddrive
  261. end
  262. end
  263. if cardrive ! 1:
  264. act 'Go to the residential area':
  265. cla
  266. set minut += 15
  267. set benz -= 1
  268. set teh -= RAND(1,3)
  269. set cardrive = 1
  270. 'You get 15 minutes to the destination.'
  271. dynamic $enddrive
  272. end
  273. end
  274. if cardrive ! 2:
  275. act 'Go to city center':
  276. cla
  277. set minut += 15
  278. set benz -= 1
  279. set teh -= RAND(1,3)
  280. set cardrive = 2
  281. 'You get 15 minutes to the destination.'
  282. dynamic $enddrive
  283. end
  284. end
  285. if cardrive ! 3:
  286. act 'Go to the northern area':
  287. cla
  288. set minut += 15
  289. set benz -= 1
  290. set teh -= RAND(1,3)
  291. set cardrive = 3
  292. 'You get 15 minutes to the destination.'
  293. dynamic $enddrive
  294. end
  295. end
  296. if cardrive ! 4:
  297. act 'Go to the lake':
  298. cla
  299. set minut += 15
  300. set benz -= 1
  301. set teh -= RAND(1,3)
  302. set cardrive = 4
  303. 'You get 15 minutes to the destination.'
  304. dynamic $enddrive
  305. end
  306. end
  307. if cardrive ! 5:
  308. act 'Go to the park':
  309. cla
  310. set minut += 15
  311. set benz -= 1
  312. set teh -= RAND(1,3)
  313. set cardrive = 5
  314. 'You get 15 minutes to the destination.'
  315. dynamic $enddrive
  316. end
  317. end
  318. if cardrive ! 6:
  319. act 'Go to the gas station':
  320. cla
  321. set minut += 15
  322. set benz -= 1
  323. set teh -= RAND(1,3)
  324. set cardrive = 6
  325. 'You get 15 minutes to the destination.'
  326. dynamic $enddrive
  327. end
  328. end
  329. if cardrive ! 7:
  330. act 'Go to the car wash':
  331. cla
  332. set minut += 15
  333. set benz -= 1
  334. set teh -= RAND(1,3)
  335. set cardrive = 7
  336. 'You get 15 minutes to the destination.'
  337. dynamic $enddrive
  338. end
  339. end
  340. if cardrive ! 8:
  341. act 'Go to a car dealership':
  342. cla
  343. set minut += 15
  344. set benz -= 1
  345. set teh -= RAND(1,3)
  346. set cardrive = 8
  347. 'You get 15 minutes to the destination.'
  348. dynamic $enddrive
  349. end
  350. end
  351. if cardrive ! 9:
  352. act 'Go to the car market':
  353. cla
  354. set minut += 15
  355. set benz -= 1
  356. set teh -= RAND(1,3)
  357. set cardrive = 9
  358. 'You get 15 minutes to the destination.'
  359. dynamic $enddrive
  360. end
  361. end
  362. if cardrive ! 12:
  363. act 'Go on to':
  364. cla
  365. set minut += 60
  366. set benz -= 1
  367. set teh -= RAND(2,5)
  368. set cardrive = 12
  369. 'You get 15 minutes to the destination.'
  370. dynamic $enddrive
  371. end
  372. end
  373. if cardrive ! 20:
  374. act 'Go to town':
  375. cla
  376. set minut += 75
  377. set benz -= 1
  378. set teh -= RAND(3,6)
  379. set cardrive = 20
  380. 'You eat more than an hour on the highway to the town.'
  381. dynamic $enddrive
  382. end
  383. end
  384. act 'Go around the track (1:00)':
  385. cla
  386. 'You go on the road.'
  387. numberRoad = input("In which city will stop (from 0 to 20)")
  388. if numberRoad >= 0 and numberRoad <= 20:
  389. set cardrive = 19
  390. set nroad = numberRoad
  391. set ncarroad = numberRoad
  392. end
  393. xgt 'carF','salon'
  394. end
  395. act 'To drive on the track (1:00)':
  396. cla
  397. set minut += 60
  398. set benz -= 4
  399. set teh -= RAND(2,6)
  400. set manna += 20
  401. set wipo += 10
  402. 'You go to the track and having fun Likhachev, then turn back.'
  403. act 'Finish': xgt 'carF','salon'
  404. end
  405. end
  406. end
  407. end
  408. --- carF ---------------------------------