carF.qsrc 11 KB

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