1
0

434_KGZgame 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. # KGZgame
  2. minut += 1
  3. gs 'stat'
  4. gs 'KGZdyn'
  5. if KGZHP <= 0:
  6. cla
  7. *clr
  8. '<center><b>GAME OVER</b></center>'
  9. act 'Quit Game':gt 'KGZstart'
  10. exit
  11. end
  12. if KGZhour >= 6 and KGZhour <= 21:
  13. KGZsvet = 1
  14. else
  15. KGZsvet = 0
  16. end
  17. '<a href="exec:gt ''KGZstart''">Get out of the game</a>'
  18. 'Health <<KGZHP>>. Day <<KGZday>>, h <<KGZhour>>.'
  19. if KGZsup <= 0:'You have no provisions, you are starving!'
  20. 'Edged weapons:<<$KGZweapon>>'
  21. if KGZgun > 0:'<<$KGZgun>>'
  22. if KGZgun2 > 0:'<<$KGZgun2>>'
  23. if KGZgun3 > 0:'<<$KGZgun3>>'
  24. if KGZgenerator > 0:
  25. if KGZbenzin = 0:$KGZbenzin = 'But the generator does not work because you do not have gasoline.'
  26. if KGZbenzin = 1:$KGZbenzin = 'You have filled a full tank of gasoline.'
  27. 'Do you have a portable generator runs on gasoline. <<$KGZbenzin>>'
  28. end
  29. if KGZbolgarka > 0:'Do you have a Bulgarian powered by electricity.'
  30. if KGZratia = 1:'Do you have a radio.'
  31. ''
  32. if KGZplace = 0:
  33. '<center><b>Apartment</b></center>'
  34. 'Your apartment is a safe place. The apartment is stored provisions, which will be enough to <<KGZsup>> days'
  35. if KGZmedkit > 0:
  36. 'First aid kits <<KGZmedkit>> pieces'
  37. if KGZHP < 100:
  38. act 'Treated':
  39. cls
  40. KGZhour += 1
  41. KGZHP = 100
  42. KGZmedkit -= 1
  43. minut += 1
  44. gs 'stat'
  45. 'You heal health through kits.'
  46. act 'Further':gt $curloc
  47. end
  48. end
  49. end
  50. act 'Laze':
  51. cls
  52. KGZhour += 1
  53. minut += 1
  54. gs 'stat'
  55. 'You lounged in the apartment, lounging on the couch and thinking how you vykruchivatsya of the situation.'
  56. act 'Further':gt $curloc
  57. end
  58. act 'Leave the apartment':
  59. cls
  60. KGZhour += 1
  61. minut += 1
  62. gs 'stat'
  63. KGZplace = 1
  64. KGZbatl = 0
  65. 'You cautiously left the apartment trying not to stumble on the dead.'
  66. act 'Further':gt $curloc
  67. end
  68. end
  69. if KGZplace = 1:
  70. KGZdead = rand(KGZday, KGZday * 2)
  71. '<center><b>Street</b></center>'
  72. 'On the street the broken machine, lie the corpses.'
  73. if KGZbatl = 0:
  74. 'Roam the streets <<KGZdead>> Dead'
  75. KGZagr = rand(0, 10)
  76. if KGZagr <= 8:
  77. 'Sensing you dead immediately rush to the attack.'
  78. act 'Srazhatsya':
  79. if KGZsvet = 1:KGZdist = rand(5, 30)
  80. if KGZsvet = 2:KGZdist = rand(3, 10)
  81. gt 'KGZfight'
  82. end
  83. else
  84. 'Fortunately, you do not notice the dead.'
  85. dynamic $KGZvihod
  86. end
  87. else
  88. 'The Walking Dead is not visible.'
  89. dynamic $KGZvihod
  90. end
  91. end
  92. if KGZplace = 2:
  93. KGZdead = rand(KGZday, KGZday * 2)
  94. '<center><b>Shop</b></center>'
  95. 'In store stale air from spoiled food and dead.'
  96. if KGZbatl = 0:
  97. 'Wander around the store <<KGZdead>> Dead'
  98. KGZagr = rand(0, 10)
  99. if KGZagr <= 8:
  100. 'Sensing you dead immediately rush to the attack.'
  101. act 'Srazhatsya':
  102. if KGZsvet = 1:KGZdist = rand(3, 10)
  103. if KGZsvet = 2:KGZdist = rand(2, 8)
  104. gt 'KGZfight'
  105. end
  106. else
  107. 'Fortunately, you do not notice the dead.'
  108. dynamic $KGZvihod2
  109. end
  110. else
  111. 'The Walking Dead is not visible.'
  112. dynamic $KGZvihod2
  113. end
  114. end
  115. if KGZplace = 3:
  116. KGZdead = rand(KGZday, KGZday * 2)
  117. '<center><b>Hospital</b></center>'
  118. 'Hospital floor littered with papers and dead bodies of patients and physicians.'
  119. if KGZbatl = 0:
  120. 'Wander around the hospital <<KGZdead>> Dead'
  121. KGZagr = rand(0, 10)
  122. if KGZagr <= 8:
  123. 'Sensing you dead immediately rush to the attack.'
  124. act 'Srazhatsya':
  125. if KGZsvet = 1:KGZdist = rand(3, 10)
  126. if KGZsvet = 2:KGZdist = rand(2, 8)
  127. gt 'KGZfight'
  128. end
  129. else
  130. 'Fortunately, you do not notice the dead.'
  131. dynamic $KGZvihod3
  132. end
  133. else
  134. 'The Walking Dead is not visible.'
  135. dynamic $KGZvihod3
  136. end
  137. end
  138. if KGZplace = 4:
  139. KGZdead = rand(KGZday, KGZday * 2)
  140. '<center><b>Boulevard</b></center>'
  141. 'On the boulevard cluster of abandoned and wrecked cars everywhere corpses.'
  142. if KGZbatl = 0:
  143. 'Wander along the boulevard <<KGZdead>> Dead'
  144. KGZagr = rand(0, 10)
  145. if KGZagr <= 8:
  146. 'Sensing you dead immediately rush to the attack.'
  147. act 'Srazhatsya':
  148. if KGZsvet = 1:KGZdist = rand(5, 30)
  149. if KGZsvet = 2:KGZdist = rand(3, 10)
  150. gt 'KGZfight'
  151. end
  152. else
  153. 'Fortunately, you do not notice the dead.'
  154. dynamic $KGZvihod4
  155. end
  156. else
  157. 'The Walking Dead is not visible.'
  158. dynamic $KGZvihod4
  159. end
  160. end
  161. if KGZplace = 5:
  162. KGZdead = rand(KGZday, KGZday * 2)
  163. '<center><b>Hunting Store</b></center>'
  164. 'In hunting stores all counters are flipped, things scattered on the floor and something where visible decaying corpses.'
  165. if KGZbatl = 0:
  166. 'Roam around the room <<KGZdead>> Dead'
  167. KGZagr = rand(0, 10)
  168. if KGZagr <= 8:
  169. 'Sensing you dead immediately rush to the attack.'
  170. act 'Srazhatsya':KGZdist = rand(2, 6) & gt 'KGZfight'
  171. else
  172. 'Fortunately, you do not notice the dead.'
  173. dynamic $KGZvihod5
  174. end
  175. else
  176. 'The Walking Dead is not visible.'
  177. dynamic $KGZvihod5
  178. end
  179. end
  180. if KGZplace = 6:
  181. KGZdead = rand(KGZday, KGZday * 2)
  182. '<center><b>Police station</b></center>'
  183. 'At the police station the police corpses scattered on the floor, tables overturned and papers strewn all around.'
  184. if KGZbatl = 0:
  185. 'Roam around the room <<KGZdead>> Dead'
  186. KGZagr = rand(0, 10)
  187. if KGZagr <= 8:
  188. 'Sensing you dead immediately rush to the attack.'
  189. act 'Srazhatsya':KGZdist = rand(2, 5) & gt 'KGZfight'
  190. else
  191. 'Fortunately, you do not notice the dead.'
  192. dynamic $KGZvihod6
  193. end
  194. else
  195. 'The Walking Dead is not visible.'
  196. dynamic $KGZvihod6
  197. end
  198. end
  199. if KGZplace = 7:
  200. KGZdead = rand(KGZday, KGZday * 2)
  201. '<center><b>Drugstore</b></center>'
  202. 'In store everything upside down and smells mertvyachinoy.'
  203. if KGZbatl = 0:
  204. 'Roam around the room <<KGZdead>> Dead'
  205. KGZagr = rand(0, 10)
  206. if KGZagr <= 8:
  207. 'Sensing you dead immediately rush to the attack.'
  208. act 'Srazhatsya':KGZdist = rand(2, 5) & gt 'KGZfight'
  209. else
  210. 'Fortunately, you do not notice the dead.'
  211. dynamic $KGZvihod7
  212. end
  213. else
  214. 'The Walking Dead is not visible.'
  215. dynamic $KGZvihod7
  216. end
  217. end
  218. if KGZplace = 8:
  219. KGZdead = rand(KGZday * 2, KGZday * 4)
  220. '<center><b>Route</b></center>'
  221. 'On the highway, a huge traffic jam of abandoned cars, where there are some broken machines and the dead bodies.'
  222. if KGZbatl = 0:
  223. 'Wander along the highway <<KGZdead>> Dead'
  224. KGZagr = rand(0, 10)
  225. if KGZagr <= 8:
  226. 'Sensing you dead immediately rush to the attack.'
  227. act 'Srazhatsya':
  228. if KGZsvet = 1:KGZdist = rand(5, 30)
  229. if KGZsvet = 2:KGZdist = rand(3, 10)
  230. gt 'KGZfight'
  231. end
  232. else
  233. 'Fortunately, you do not notice the dead.'
  234. dynamic $KGZvihod8
  235. end
  236. else
  237. 'The Walking Dead is not visible.'
  238. dynamic $KGZvihod8
  239. end
  240. end
  241. if KGZplace = 9:
  242. KGZdead = rand(KGZday, KGZday * 2)
  243. '<center><b>Threading</b></center>'
  244. 'At the gas station is a pair of abandoned cars. No electricity and speakers only work in manual mode.'
  245. if KGZbatl = 0:
  246. 'Roam around the room <<KGZdead>> Dead'
  247. KGZagr = rand(0, 10)
  248. if KGZagr <= 8:
  249. 'Sensing you dead immediately rush to the attack.'
  250. act 'Srazhatsya':KGZdist = rand(2, 5) & gt 'KGZfight'
  251. else
  252. 'Fortunately, you do not notice the dead.'
  253. dynamic $KGZvihod9
  254. end
  255. else
  256. 'The Walking Dead is not visible.'
  257. dynamic $KGZvihod9
  258. end
  259. end
  260. if KGZplace = 10:
  261. KGZdead = rand(KGZday * 5, KGZday * 10)
  262. if KGZplaceA = 20:KGZplace = 100 & gt $curloc
  263. if KGZplaceA = 10:KGZplace = 11 & gt $curloc
  264. if KGZplaceA = 0:KGZplace = 8 & gt $curloc
  265. '<center><b>Highway in Fort Bragg</b></center>'
  266. '<center><b><<KGZplaceA>>th kilometer</b></center>'
  267. 'On the highway are broken machines are corpses.'
  268. if KGZbatl = 0:
  269. 'Wander along the highway <<KGZdead>> Dead'
  270. KGZagr = rand(0, 10)
  271. if KGZagr <= 8:
  272. 'Sensing you dead immediately rush to the attack.'
  273. act 'Srazhatsya':
  274. if KGZsvet = 1:KGZdist = rand(5, 30)
  275. if KGZsvet = 2:KGZdist = rand(3, 10)
  276. gt 'KGZfight'
  277. end
  278. else
  279. 'Fortunately, you do not notice the dead.'
  280. dynamic $KGZvihod10
  281. end
  282. else
  283. 'The Walking Dead is not visible.'
  284. dynamic $KGZvihod10
  285. end
  286. end
  287. if KGZplace = 11:
  288. KGZdead = rand(KGZday * 10, KGZday * 20)
  289. '<center><b>Fort Bragg</b></center>'
  290. 'Fort Bragg is a small building surrounded by a fence.'
  291. if KGZbatl = 0:
  292. 'Roam around the fort <<KGZdead>> Dead'
  293. KGZagr = rand(0, 10)
  294. if KGZagr <= 8:
  295. 'Sensing you dead immediately rush to the attack.'
  296. act 'Srazhatsya':KGZdist = rand(3, 10) & gt 'KGZfight'
  297. else
  298. 'Fortunately, you do not notice the dead.'
  299. dynamic $KGZvihod11
  300. end
  301. else
  302. 'The Walking Dead is not visible.'
  303. dynamic $KGZvihod11
  304. end
  305. end
  306. if KGZplace = 12:
  307. if KGZdost = 0:KGZdost = 1
  308. KGZdead = rand(KGZday * 10, KGZday * 20)
  309. '<center><b>Roof Fort Bragg</b></center>'
  310. 'On the roof is full of lying motionless rotting bodies, many spent cartridges.'
  311. 'Provisions enough for <<KGZsup>> day'
  312. if KGZfortQW > 0:'<a href="exec:dynamic $KGZvincent">Young tired man in the form of Ranger</a>, sits leaning on a sniper rifle.'
  313. if KGZmedkit > 0:
  314. 'First aid kits <<KGZmedkit>> pieces'
  315. if KGZHP < 100:
  316. act 'Treated':
  317. cls
  318. KGZhour += 1
  319. KGZHP = 100
  320. KGZmedkit -= 1
  321. minut += 1
  322. gs 'stat'
  323. 'You heal health through kits.'
  324. act 'Further':gt $curloc
  325. end
  326. end
  327. end
  328. act 'Rest':
  329. cls
  330. KGZhour += 1
  331. minut += 1
  332. gs 'stat'
  333. 'You have settled on the convenient roof, not taking his eyes off the hatch which can climb dead.'
  334. act 'Further':gt $curloc
  335. end
  336. act 'Exit to the fort':
  337. cls
  338. KGZhour += 1
  339. minut += 1
  340. gs 'stat'
  341. KGZplace = 11
  342. KGZbatl = 0
  343. 'You gently down into the hatch, trying not to stumble on the dead.'
  344. act 'Further':gt $curloc
  345. end
  346. end
  347. if KGZplace = 13:
  348. KGZdead = rand(KGZday * 10, KGZday * 20)
  349. '<center><b>Fort Bragg</b></center>'
  350. '<center><b>Food Storage</b></center>'
  351. 'Stock dark and heard noises.'
  352. if KGZbatl = 0:
  353. 'Wander around the warehouse <<KGZdead>> Dead'
  354. KGZagr = rand(0, 10)
  355. if KGZagr <= 8:
  356. 'Sensing you dead immediately rush to the attack.'
  357. act 'Srazhatsya':KGZdist = rand(2, 3) & gt 'KGZfight'
  358. else
  359. 'Fortunately, you do not notice the dead.'
  360. dynamic $KGZvihod13
  361. end
  362. else
  363. 'The Walking Dead is not visible.'
  364. dynamic $KGZvihod13
  365. end
  366. end
  367. if KGZplace = 14:
  368. KGZdead = rand(KGZday * 10, KGZday * 20)
  369. '<center><b>Fort Bragg</b></center>'
  370. '<center><b>Infirmary</b></center>'
  371. 'In the hospital is dark and heard noises.'
  372. if KGZbatl = 0:
  373. 'By Infirmary roam <<KGZdead>> Dead'
  374. KGZagr = rand(0, 10)
  375. if KGZagr <= 8:
  376. 'Sensing you dead immediately rush to the attack.'
  377. act 'Srazhatsya':KGZdist = rand(2, 3) & gt 'KGZfight'
  378. else
  379. 'Fortunately, you do not notice the dead.'
  380. dynamic $KGZvihod14
  381. end
  382. else
  383. 'The Walking Dead is not visible.'
  384. dynamic $KGZvihod14
  385. end
  386. end
  387. if KGZplace = 15:
  388. KGZdead = rand(KGZday * 10, KGZday * 20)
  389. '<center><b>Fort Bragg</b></center>'
  390. '<center><b>Arms</b></center>'
  391. 'In the armory dark and heard noises.'
  392. if KGZbatl = 0:
  393. 'On weapons roam <<KGZdead>>Dead'
  394. KGZagr = rand(0, 10)
  395. if KGZagr <= 8:
  396. 'Sensing you dead immediately rush to the attack.'
  397. act 'Srazhatsya':KGZdist = rand(2, 3) & gt 'KGZfight'
  398. else
  399. 'Fortunately, you do not notice the dead.'
  400. dynamic $KGZvihod15
  401. end
  402. else
  403. 'The Walking Dead is not visible.'
  404. dynamic $KGZvihod15
  405. end
  406. end
  407. if KGZplace = 16:
  408. KGZdead = rand(KGZday * 10, KGZday * 20)
  409. '<center><b>Fort Bragg</b></center>'
  410. '<center><b>Garage</b></center>'
  411. 'The garage is dark and heard noises.'
  412. if KGZbatl = 0:
  413. 'Roam around the garage <<KGZdead>> Dead'
  414. KGZagr = rand(0, 10)
  415. if KGZagr <= 8:
  416. 'Sensing you dead immediately rush to the attack.'
  417. act 'Srazhatsya':KGZdist = rand(2, 3) & gt 'KGZfight'
  418. else
  419. 'Fortunately, you do not notice the dead.'
  420. dynamic $KGZvihod16
  421. end
  422. else
  423. 'The Walking Dead is not visible.'
  424. dynamic $KGZvihod16
  425. end
  426. end
  427. if KGZplace = 100:
  428. KGZdead = rand(KGZday * 20, KGZday * 30)
  429. '<center><b>City Koldkrik</b></center>'
  430. 'The city was destroyed and fires could be seen.'
  431. if KGZbatl = 0:
  432. 'Roam the streets <<KGZdead>> Dead'
  433. KGZagr = rand(0, 10)
  434. if KGZagr <= 8:
  435. 'Sensing you dead immediately rush to the attack.'
  436. act 'Srazhatsya':KGZdist = rand(10, 30) & gt 'KGZfight'
  437. else
  438. 'Fortunately, you do not notice the dead.'
  439. dynamic $KGZvihod100
  440. end
  441. else
  442. 'The Walking Dead is not visible.'
  443. dynamic $KGZvihod100
  444. end
  445. end
  446. if KGZplace = 101:
  447. '<center><b>House</b></center>'
  448. 'This home is a safe place. The house is kept provision, which will be enough to <<KGZsup>> days'
  449. if KGZmedkit > 0:
  450. 'First aid kits <<KGZmedkit>> pieces'
  451. if KGZHP < 100:
  452. act 'Treated':
  453. cls
  454. KGZhour += 1
  455. KGZHP = 100
  456. KGZmedkit -= 1
  457. minut += 1
  458. gs 'stat'
  459. 'You heal health through kits.'
  460. act 'Further':gt $curloc
  461. end
  462. end
  463. end
  464. act 'Laze':
  465. cls
  466. KGZhour += 1
  467. minut += 1
  468. gs 'stat'
  469. 'You lounged in the apartment, lounging on the couch and thinking how you vykruchivatsya of the situation.'
  470. act 'Further':gt $curloc
  471. end
  472. act 'Out of the house':
  473. cls
  474. KGZhour += 1
  475. minut += 1
  476. gs 'stat'
  477. KGZplace = 100
  478. KGZbatl = 0
  479. 'You cautiously left the apartment trying not to stumble on the dead.'
  480. act 'Further':gt $curloc
  481. end
  482. end
  483. if KGZplace = 102:
  484. KGZdead = rand(KGZday * 5, KGZday * 10)
  485. '<center><b>Supermarket</b></center>'
  486. 'At the supermarket, dark and heard noises.'
  487. if KGZbatl = 0:
  488. 'Roam the halls of the Trade <<KGZdead>> Dead'
  489. KGZagr = rand(0, 10)
  490. if KGZagr <= 8:
  491. 'Sensing you dead immediately rush to the attack.'
  492. act 'Srazhatsya':KGZdist = rand(5, 10) & gt 'KGZfight'
  493. else
  494. 'Fortunately, you do not notice the dead.'
  495. dynamic $KGZvihod102
  496. end
  497. else
  498. 'The Walking Dead is not visible.'
  499. dynamic $KGZvihod102
  500. end
  501. end
  502. if KGZplace = 200:
  503. KGZdead = rand(KGZday, KGZday * 2)
  504. '<center><b>Forest</b></center>'
  505. 'In the dark forest and heard noises.'
  506. if KGZbatl = 0:
  507. 'Wander through the woods <<KGZdead>> Dead'
  508. KGZagr = rand(0, 10)
  509. if KGZagr <= 8:
  510. 'Sensing you dead immediately rush to the attack.'
  511. act 'Srazhatsya':KGZdist = rand(10, 30) & gt 'KGZfight'
  512. else
  513. 'Fortunately, you do not notice the dead.'
  514. dynamic $KGZvihod200
  515. end
  516. else
  517. 'The Walking Dead is not visible.'
  518. dynamic $KGZvihod200
  519. end
  520. end
  521. if KGZplace = 201:
  522. KGZdead = rand(KGZday, KGZday * 3)
  523. '<center><b>Farm</b></center>'
  524. 'Large fenced farm fence.'
  525. if KGZbatl = 0:
  526. 'Wander around the neighborhood <<KGZdead>> Dead'
  527. KGZagr = rand(0, 10)
  528. if KGZagr <= 8:
  529. 'Sensing you dead immediately rush to the attack.'
  530. act 'Srazhatsya':KGZdist = rand(10, 30) & gt 'KGZfight'
  531. else
  532. 'Fortunately, you do not notice the dead.'
  533. dynamic $KGZvihod201
  534. end
  535. else
  536. 'The Walking Dead is not visible.'
  537. dynamic $KGZvihod201
  538. end
  539. end
  540. if KGZplace = 202:
  541. '<center><b>House</b></center>'
  542. 'This home is a safe place. The house is kept provision, which will be enough to <<KGZsup>> days'
  543. if KGZmedkit > 0:
  544. 'First aid kits <<KGZmedkit>> pieces'
  545. if KGZHP < 100:
  546. act 'Treated':
  547. cls
  548. KGZhour += 1
  549. KGZHP = 100
  550. KGZmedkit -= 1
  551. minut += 1
  552. gs 'stat'
  553. 'You heal health through kits.'
  554. act 'Further':gt $curloc
  555. end
  556. end
  557. end
  558. act 'Laze':
  559. cls
  560. KGZhour += 1
  561. minut += 1
  562. gs 'stat'
  563. 'You lounged in the apartment, lounging on the couch and thinking how you vykruchivatsya of the situation.'
  564. act 'Further':gt $curloc
  565. end
  566. act 'Out of the house':
  567. cls
  568. KGZhour += 1
  569. minut += 1
  570. gs 'stat'
  571. KGZplace = 201
  572. KGZbatl = 0
  573. 'You cautiously left the apartment trying not to stumble on the dead.'
  574. act 'Further':gt $curloc
  575. end
  576. end
  577. --- KGZgame ---------------------------------