carF.qsrc 12 KB

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