carF 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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 = 13:gt 'dachi'
  16. if cardrive = 14:gt 'liam'
  17. if cardrive = 18:gt 'youplace'
  18. if cardrive = 19:gt'vokzal'
  19. if cardrive = 20:gt 'pavResidential'
  20. if cardrive = 21:gt'zaprF','start'
  21. if cardrive = 22:gt'road'
  22. if cardrive = 23:gt'gadukino'
  23. if cardrive = 24:gt'pavCommercial'
  24. }
  25. if $ARGS[0] = 'start':
  26. $metka = $ARGS[0]
  27. $loc = $CURLOC
  28. CLOSE ALL
  29. cla
  30. clr
  31. *clr
  32. minut += 1
  33. gs 'stat'
  34. fcolor = rgb(0, 0, 0)
  35. bcolor = rgb(255, 255, 255)
  36. lcolor = rgb(106, 90, 205)
  37. '<center><b><<$car>></b></center>'
  38. '<center><img src="images/picar/car<<car>>.jpg"></center>'
  39. act 'Move away from the car':dynamic $enddrive
  40. if kanistra > 0:
  41. 'In the trunk there is a <<kanistra>>. It contains 5 liter of gasoline.'
  42. if benz <= 35:
  43. act 'Pour the gasoline into the tank':
  44. cla
  45. benz += 5
  46. kanistra -= 1
  47. 'You emptied the canister of gasoline in the tank.'
  48. act 'Move away':gt 'carF', 'start'
  49. end
  50. end
  51. end
  52. act 'Get in the car':gt 'carF', 'salon'
  53. end
  54. if $ARGS[0] = 'salon':
  55. $metka = $ARGS[0]
  56. $loc = $CURLOC
  57. cla
  58. clr
  59. *clr
  60. minut += 1
  61. gs 'stat'
  62. '<center><b><<$car>></b></center>'
  63. '<center><img src="images/picar/salon<<car>>.jpg"></center>'
  64. 'Gasoline - <<benz>> liters, the fuel tank has a capacity of 40 liters.'
  65. if teh <= 0:teh = 0 & wrek = 1
  66. if teh <= 0 or wrek = 1:$teh = 'The car won''t start, it needs to be repaired.'
  67. if teh >= tehcar * 75 / 100 and wrek = 0:$teh = 'The car is in excellent condition.'
  68. if teh < tehcar * 75 / 100 and teh >= tehcar * 50 / 100 and wrek = 0:$teh = 'While driving the car you can hear some noises'
  69. if teh < tehcar * 50 / 100 and teh >= tehcar * 25 / 100 and wrek = 0:$teh = 'The car seems broken and barely drives.'
  70. if teh < tehcar * 25 / 100 and wrek = 0:$teh = 'How this car still works is a mystery even to the designers.'
  71. '<<$teh>>'
  72. if cardrive = 1:'Through the windshield you see the residential area.'
  73. if cardrive = 2:'Through the windshield you see downtown.'
  74. if cardrive = 3:'Through the windshield you see the city industrial region.'
  75. if cardrive = 4:'Through the windshield you see the lake.'
  76. if cardrive = 12:'Through the windshield you see a construction site.'
  77. if cardrive = 14:'Through the windshield you see the old town.'
  78. if cardrive = 5:'Through the windshield, you can see the park.'
  79. if cardrive = 19:'Through the windshield you see the Station.'
  80. if cardrive = 23:'Through the windshield you see the huts of the village Gadyukino.'
  81. if cardrive = 24:'Through the windshield, you can see the Old Town.'
  82. if prava = 0:'You don''t have a driving license.'
  83. act 'Out of the car':dynamic $enddrive
  84. if benz > 0 and wrek = 0 and prava > 0:
  85. if teh >= tehcar * 75 / 100 and wrek = 0:
  86. wrekrand = rand(0, 1000)
  87. if wrekrand = 1000:wrek = 1
  88. elseif teh < tehcar * 75 / 100 and teh >= tehcar * 50/100 and wrek = 0:
  89. wrekrand = rand(0, 100)
  90. if wrekrand = 100:wrek = 1
  91. elseif teh < tehcar * 50 / 100 and teh >= tehcar * 25 / 100 and wrek = 0:
  92. wrekrand = rand(0, 100)
  93. if wrekrand >= 80:wrek = 1
  94. elseif teh < tehcar * 25 / 100 and wrek = 0:
  95. wrekrand = rand(0, 100)
  96. if wrekrand >= 40:wrek = 1
  97. elseif wrek = 1:
  98. 'Something clatters loudly and the engine stalls.'
  99. act 'Fuck':gt 'carF', 'salon'
  100. end
  101. if alko > 0:
  102. dpsrand = rand(0, 100)
  103. if dpsrand <= alko:
  104. 'A policeman stops you, he looks at your condition and requests you to breath into a tube. You breathe and a red light lights up on the instrument panel.'
  105. 'The traffic policeman snorts and writes something down. He hand you a paper with the number 50000 on it'
  106. '"Or I can write a report. But you will get a permanent record for driving drunk."'
  107. if money >= 50000:
  108. act 'Bribe him (50,000 <b>₽</b>)':
  109. cla
  110. money = money - 50000
  111. 'You pay and the policeman warns you that you can not keep driving in your drunken state.'
  112. act 'In the salon':gt 'carF', 'salon'
  113. end
  114. end
  115. act 'Come on, this is within the law':
  116. cla
  117. prava = 0
  118. '"I can take your license, for not driving sober."'
  119. act 'In the salon':gt 'carF', 'salon'
  120. end
  121. exit
  122. end
  123. elseif alko >= 10:
  124. avarand = rand(0, 100)
  125. if avarand >= 50:
  126. teh = teh/2
  127. wrek = 1
  128. 'Driving drunk you crash into a tree, wrecking your car.'
  129. act 'In the salon':gt 'carF', 'salon'
  130. exit
  131. end
  132. end
  133. if wrek = 0:
  134. if cardrive >= 20:
  135. if cardrive ! 3:
  136. act 'Go to town':
  137. cla
  138. minut += 75
  139. benz -= 1
  140. teh -= rand(3, 6)
  141. cardrive = 3
  142. 'You drive for more than an hour on the highway before you get to the city.'
  143. dynamic $enddrive
  144. end
  145. end
  146. if cardrive ! 21:
  147. act 'Go to the gas station':
  148. cla
  149. minut += 15
  150. benz -= 1
  151. teh -= rand(1, 3)
  152. cardrive = 21
  153. '15 minutes later, you arrive at your destination.'
  154. dynamic $enddrive
  155. end
  156. end
  157. end
  158. if placeMansion > 0 and cardrive ! 18:
  159. act 'Go to your mansion':
  160. cla
  161. if cardrive >= 20:
  162. minut += 60
  163. benz -= 1
  164. teh -= rand(1, 3)
  165. cardrive = 18
  166. else
  167. minut += 15
  168. benz -= 1
  169. teh -= rand(1, 3)
  170. cardrive = 18
  171. end
  172. 'You drive to your mansion.'
  173. dynamic $enddrive
  174. end
  175. end
  176. if cardrive ! 1 and cardrive < 20:
  177. act 'Go to the residential area':
  178. cla
  179. minut += 15
  180. benz -= 1
  181. teh -= rand(1, 3)
  182. cardrive = 1
  183. '15 minutes later, you arrive at your destination.'
  184. dynamic $enddrive
  185. end
  186. end
  187. if cardrive ! 2 and cardrive < 20:
  188. act 'Go to city center':
  189. cla
  190. minut += 15
  191. benz -= 1
  192. teh -= rand(1, 3)
  193. cardrive = 2
  194. '15 minutes later, you arrive at your destination.'
  195. dynamic $enddrive
  196. end
  197. end
  198. if cardrive ! 3 and cardrive < 20:
  199. act 'Go to the city industrial area':
  200. cla
  201. minut += 15
  202. benz -= 1
  203. teh -= rand(1, 3)
  204. cardrive = 3
  205. '15 minutes later, you arrive at your destination.'
  206. dynamic $enddrive
  207. end
  208. end
  209. if cardrive ! 19 and cardrive < 20:
  210. act 'Go to the city train station':
  211. cla
  212. minut = minut + 15
  213. benz = benz - 1
  214. teh = teh - RAND(1,3)
  215. cardrive = 19
  216. '15 minutes later, you arrive at your destination.'
  217. dynamic $enddrive
  218. end
  219. end
  220. if cardrive ! 4 and cardrive < 20:
  221. act 'Go to the city lake':
  222. cla
  223. minut += 15
  224. benz -= 1
  225. teh -= rand(1, 3)
  226. cardrive = 4
  227. '15 minutes later, you arrive at your destination.'
  228. dynamic $enddrive
  229. end
  230. end
  231. if cardrive ! 5 and cardrive < 20:
  232. act 'Go to the city park':
  233. cla
  234. minut += 15
  235. benz -= 1
  236. teh -= rand(1, 3)
  237. cardrive = 5
  238. '15 minutes later, you arrive at your destination.'
  239. dynamic $enddrive
  240. end
  241. end
  242. if cardrive ! 6 and cardrive < 20:
  243. act 'Go to the gas station':
  244. cla
  245. minut += 15
  246. benz -= 1
  247. teh -= rand(1, 3)
  248. cardrive = 6
  249. '15 minutes later, you arrive at your destination.'
  250. dynamic $enddrive
  251. end
  252. end
  253. if cardrive ! 7 and cardrive < 20:
  254. act 'Go to the car wash':
  255. cla
  256. minut += 15
  257. benz -= 1
  258. teh -= rand(1, 3)
  259. cardrive = 7
  260. '15 minutes later, you arrive at your destination.'
  261. dynamic $enddrive
  262. end
  263. end
  264. if cardrive ! 8 and cardrive < 20:
  265. act 'Go to a car dealership':
  266. cla
  267. minut += 15
  268. benz -= 1
  269. teh -= rand(1, 3)
  270. cardrive = 8
  271. '15 minutes later, you arrive at your destination.'
  272. dynamic $enddrive
  273. end
  274. end
  275. if cardrive ! 9 and cardrive < 20:
  276. act 'Go to the car market':
  277. cla
  278. minut += 15
  279. benz -= 1
  280. teh -= rand(1, 3)
  281. cardrive = 9
  282. '15 minutes later, you arrive at your destination.'
  283. dynamic $enddrive
  284. end
  285. end
  286. if cardrive ! 12:
  287. act 'Go to the construction site':
  288. cla
  289. if cardrive < 20:
  290. minut += 60
  291. 'It takes an hour to get to your destination.'
  292. else
  293. minut += 15
  294. '15 minutes later, you arrive at your destination.'
  295. end
  296. benz -= 1
  297. teh -= rand(2, 5)
  298. cardrive = 12
  299. dynamic $enddrive
  300. end
  301. end
  302. if cardrive ! 13:
  303. act 'Go to the suburban cooperative':
  304. cla
  305. if cardrive >= 20:
  306. minut += 60
  307. 'It takes an hour to get to your destination.'
  308. else
  309. minut += 15
  310. '15 minutes later, you arrive at your destination.'
  311. end
  312. benz -= 1
  313. teh -= rand(2, 5)
  314. cardrive = 13
  315. dynamic $enddrive
  316. end
  317. end
  318. if cardrive ! 14:
  319. act 'Go to the old town':
  320. cla
  321. if cardrive < 20:
  322. minut += 75
  323. 'It takes you more than an hour to get to the Old Town.'
  324. else
  325. minut += 15
  326. '15 minutes later, you reach the Old Town.'
  327. end
  328. benz -= 1
  329. teh -= rand(2, 5)
  330. cardrive = 14
  331. dynamic $enddrive
  332. end
  333. end
  334. if cardrive ! 20:
  335. act 'Go to Pavlovsk residential area':
  336. cla
  337. benz -= 1
  338. teh -= rand(3, 6)
  339. cardrive = 20
  340. if cardrive < 20:
  341. minut += 75
  342. 'You spend more than an hour on the highway going to Pavlovsk.'
  343. else
  344. minut += 15
  345. '15 minutes later, you reach your destination.'
  346. end
  347. dynamic $enddrive
  348. end
  349. end
  350. if cardrive ! 23:
  351. act 'To go to the village of Gadyukino':
  352. cla
  353. benz = benz - 1
  354. teh = teh - RAND(3,6)
  355. cardrive = 23
  356. if cardrive < 20:
  357. minut += 75
  358. 'You spend more than an hour on the highway going to Gadyukino.'
  359. else
  360. minut += 15
  361. '15 minutes later, you reach your destination.'
  362. end
  363. dynamic $enddrive
  364. end
  365. end
  366. if cardrive ! 24:
  367. act 'Go to Pavlovsk high street':
  368. cla
  369. benz -= 1
  370. teh -= rand(3, 6)
  371. cardrive = 24
  372. if cardrive < 20:
  373. minut += 75
  374. 'You spend more than an hour on the highway going to Pavlovsk.'
  375. else
  376. minut += 15
  377. '15 minutes later, you reach your destination.'
  378. end
  379. dynamic $enddrive
  380. end
  381. end
  382. act 'Drive the St. Petersburg - Pavlovsk Highway':
  383. 'You drive out onto the highway.'
  384. :oops
  385. cla
  386. if cardrive < 20:
  387. numberRoad = input("How many km toward Pavlovsk do you go (from 0 to 20)")
  388. else
  389. numroadtemp = input("How many km toward St Petersburg do you go (from 0 to 20)")
  390. numberroad = 20 - numroadtemp & killvar 'numroadtemp'
  391. end
  392. if numberRoad >= 0 and numberRoad <= 20:
  393. cardrive = 22
  394. nroad = numberRoad
  395. ncarroad = numberRoad
  396. else
  397. 'Invalid Entry'
  398. jump 'oops'
  399. end
  400. xgt 'carF', 'salon'
  401. end
  402. act 'Drive on the track (1:00)':
  403. cla
  404. minut += 60
  405. benz -= 4
  406. teh -= rand(2, 6)
  407. manna += 20
  408. wipo += 10
  409. 'You go to the track and having fun driving around before you turn back.'
  410. act 'Finish':xgt 'carF', 'salon'
  411. end
  412. end
  413. end
  414. end
  415. --- carF ---------------------------------