1
0

carF.qsrc 12 KB

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