:: KGZdyn
<<set $here = 'KGZdyn'>>
<<set $ARGS = $location_var[$here]>>
<<if getvar("$KGZweapon") == 0>>
	<<set $KGZweapon = 'Fists'>> <<set $KGZweapona = 'Fist'>>

<</if>>
<<if getvar("$KGZweapon") == 1>>
	<<set $KGZweapon = 'Baton'>> <<set $KGZweapona = 'Shillelagh'>>

<</if>>
<<if getvar("$KGZweapon") == 2>>
	<<set $KGZweapon = 'Ax'>> <<set $KGZweapona = 'Ax'>>

<</if>>
<<if getvar("$KGZgun") > 0>>
	<<set $KGZgun = 'Pistol, cartridges bulletpiece'>>

<</if>>
<<if getvar("$KGZgun2") > 0>>
	<<set $KGZgun2 = 'Shotgun cartridges bullet2piece'>>

<</if>>
<<if getvar("$KGZgun3") > 0>>
	<<set $KGZgun3 = 'Automatic, cartridges bullet3piece'>>

<</if>>
<<if getvar("$KGZhour") >= 24>>
	<<set $KGZhour -= 24>>
	<<set $KGZday += 1>>
	<<if getvar("$KGZsup") == 0>>
		<<set $KGZHP -= 10>>
	<<else>>
		<<set $KGZsup -= 1>>
	<</if>>
<</if>>
:: KGZvihod_macro[widget]
<<widget 'KGZvihod'>>
	<<if getvar("$KGZweapon") == 0>>
	<<set $KGZweapon = 1>> 

<</if>>
	<<actCLA 'Go to the apartment'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 0>>
		<<set $KGZbatl = 0>>
		You went to the apartment carefully trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the store'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 2>>
		<<set $KGZbatl = 0>>
		You cautiously went to the store with smashed storefronts trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the hospital'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 3>>
		<<set $KGZbatl = 0>>
		You went to the hospital carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the boulevard'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 4>>
		<<set $KGZbatl = 0>>
		You gingerly walked down the street, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod2_macro[widget]
<<widget 'KGZvihod2'>>
	<<actCLA 'Go to the street'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 1>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search provisions'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		Noiselessly you started searching the store looking for food.
		<<set $KGZsupoisk = rand(0, 100)>>
		<<if getvar("$KGZsupoisk") == 100>>
			<<set $KGZsup += 1>>
			You found enough food to stretch another day.
		<<elseif $KGZday < $KGZsupoisk>>
			<<set $KGZsup += 1>>
			You found enough food to stretch another day.
		<<else>>
			You are not able to find anything edible, all that you have found rotten and no good for eating.
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod3_macro[widget]
<<widget 'KGZvihod3'>>
	<<actCLA 'Go to the street'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 1>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search kits'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		Noiselessly you started searching the hospital looking kit.
		<<set $KGZsupoisk = rand(0, 100)>>
		<<if getvar("$KGZsupoisk") == 100>>
			<<set $KGZmedkit += 1>>
			You have found a first aid kit.
		<<elseif $KGZday < $KGZsupoisk>>
			<<set $KGZmedkit += 1>>
			You have found a first aid kit.
		<<else>>
			You are not able to find anything useful.
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod4_macro[widget]
<<widget 'KGZvihod4'>>
	<<actCLA 'Go to the street to the side of his house'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 1>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the hunting store'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 5>>
		<<set $KGZbatl = 0>>
		You carefully went hunting store trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the police station'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 6>>
		<<set $KGZbatl = 0>>
		You cautiously went to the police station trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the hardware store'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 7>>
		<<set $KGZbatl = 0>>
		You cautiously went to the hardware store trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZcopcar") == 0>>
		<<actCLA 'Search the police car'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<!-- !!KGZplace = 2-->
			<<set $KGZbatl = 1>>
			<<set $KGZcopcar = 1>>
			<<set $bullet += 10>>
			Noiselessly you started searching the police car.
			<<if getvar("$KGZgun") == 0>>
			<<set $KGZgun = 1>> 

		<</if>>
			You found 10t ammunition for the gun.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
	<<actCLA 'Go on the highway'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 8>>
		<<set $KGZbatl = 0>>
		You cautiously walked towards the highway trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod5_macro[widget]
<<widget 'KGZvihod5'>>
	<<actCLA 'Leave the store'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 4>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search salesroom'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		<<set $bulletrand = rand(3, 20)>>
		<<set $bullet2 += $bulletrand>>
		Noiselessly you started searching the hunting store.
		<<if getvar("$KGZgun2") == 0>>
		<<set $KGZgun2 = 1>> 

	<</if>>
		You have found <<bulletrand>>to be shotgun cartridges.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod6_macro[widget]
<<widget 'KGZvihod6'>>
	<<actCLA 'Get Outside'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 4>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search the police station'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		<<set $bulletrand = rand(3, 20)>>
		<<set $bullet += $bulletrand>>
		Noiselessly you started searching the police station.
		<<if getvar("$KGZgun") == 0>>
		<<set $KGZgun = 1>> 

	<</if>>
		You have found <<bulletrand>>be ammo for the gun.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZcopdoor") == 0>>
		Armed room is locked on a massive iron door which can be opened only grinder, but the trouble is, there is no electricity.
		<<if getvar("$KGZgenerator") > 0 and getvar("$KGZbenzin") > 0 and getvar("$KGZbolgarka") > 0>>
			<<actCLA 'Uncover grinder armed room'>>
				<<set $KGZhour += 1>>
				<<set $time.minutes += 1>>
				<<set $KGZcopdoor = 1>>
				<<set $KGZbatl = 0>>
				<<set $bullet3 += 500>>
				<<set $KGZdead = $KGZday * 10>>
				Noiselessly you started searching the police station.
				<<if getvar("$KGZgun3") == 0>>
				<<set $KGZgun3 = 1>> 

			<</if>>
				You have found 500 tons of ammunition for machine.
				The noise from the grinder ran dead and attacked you.
				<<actCLA 'Srazhatsya'>>
				<<set $KGZdist = rand(5, 8)>> <<gt 'KGZfight'>>
			<</actCLA>>
			<</actCLA>>
		<</if>>
	<<elseif getvar("$KGZcopdoor") == 1>>
		Armory room is empty, just a bunch of dead on the floor, according to a recent fight with you.
		<<if getvar("$KGZratia") == 0>>
			<<actCLA 'Pick up radio'>>
				<<set $KGZhour += 1>>
				<<set $time.minutes += 1>>
				<<set $KGZratia = 1>>
				<<set $KGZbatl = 1>>
				You have found a radio. Including it you heard the voice repeating the same phrase. "Everyone who hears me. Safe Haven is 10m kilometer highway. Go to Fort Bragg."
				<<actCLA 'Further'>>
				<<gt $curloc>>
			<</actCLA>>
			<</actCLA>>
		<</if>>
	<</if>>
<</widget>>
:: KGZvihod7_macro[widget]
<<widget 'KGZvihod7'>>
	<<actCLA 'Get Outside'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 4>>
		<<set $KGZbatl = 0>>
		You carefully went into the street trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search the store'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		Noiselessly you started searching the hardware store.
		<<if getvar("$KGZweapon") < 2>>
			<<set $KGZweapon = 2>>
			You found an ax
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
			$exit
		<</if>>
		<<if getvar("$KGZgenerator") == 0>>
			<<set $KGZgenerator = 1>>
			You found refillable portable generator gasoline.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
			$exit
		<</if>>
		<<if getvar("$KGZbolgarka") == 0>>
			<<set $KGZbolgarka = 1>>
			You found grinder is powered by electricity.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
			$exit
		<</if>>
		You did not find anything useful.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod8_macro[widget]
<<widget 'KGZvihod8'>>
	<<actCLA 'Exit at Boulevard'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 4>>
		<<set $KGZbatl = 0>>
		You went to the boulevard carefully trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the gas station'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 9>>
		<<set $KGZbatl = 0>>
		Noiselessly you went to the gas station.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZratia") > 0>>
		<<actCLA 'Go in the direction of Fort Bragg'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZplace = 10>>
			<<set $KGZplaceA = 1>>
			<<set $KGZbatl = 0>>
			Noiselessly you went toward Fort Bragg.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
<</widget>>
:: KGZvihod9_macro[widget]
<<widget 'KGZvihod9'>>
	<<actCLA 'Exit the highway'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplace = 8>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZbenzin") == 0>>
		<<actCLA 'Pour gasoline'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZbenzin = 1>>
			<<set $KGZbatl = 0>>
			Noiselessly you poured gasoline from the column.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
<</widget>>
:: KGZvihod10_macro[widget]
<<widget 'KGZvihod10'>>
	<<if getvar("$KGZplaceA") < 10>>
	<<set $KGZplaceA = 'Fort Bragg'>> <<set $KGZplaceB = 'from the city'>>

<</if>>
	<<if getvar("$KGZplaceA") > 10>>
	<<set $KGZplaceA = 'from the city'>> <<set $KGZplaceB = 'Fort Bragg'>>

<</if>>
	<<actCLA 'Go in the direction $KGZplaceA'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplaceA += 1>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go in the direction $KGZplaceB'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplaceA -= 1>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZplaceA") > 10>>
		<<actCLA 'Go to the forest'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZbatl = 0>>
			<<set $KGZplace = 200>>
			You have gone off the highway into the woods.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
<</widget>>
:: KGZvihod11_macro[widget]
<<widget 'KGZvihod11'>>
	<<if getvar("$KGZfortQW") == 0>>
	From the roof of a shot is fired with a sniper rifle.

<</if>>
	<<if getvar("$KGZfortQW") == 0>>
	The man on the roof screaming you. "Fort Bragg fell. I stayed living person. Save me. Ammo I end, and ghouls and climb."

<</if>>
	<<actCLA 'Probivatsya the roof'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<if getvar("$KGZfortQW") == 0>>
		<<set $KGZfortQW = 1>>

	<</if>>
		<<set $KGZplace = 12>>
		<<set $KGZbatl = 0>>
		<<set $KGZdead = rand(KGZday * 20, KGZday * 30)>>
		You ran into a fort surrounded on all sides dead.
		<<actCLA 'Srazhatsya'>>
		<<set $KGZdist = rand(5, 12)>> <<gt 'KGZfight'>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the side of the highway (the side leading to the city)'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplaceA = 9>>
		<<set $KGZplace = 10>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the side of the highway (leading side of the city)'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplaceA = 11>>
		<<set $KGZplace = 10>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZfortQW") == 2>>
		<<actCLA 'Probivatsya on food warehouse'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZplace = 13>>
			<<set $KGZbatl = 0>>
			<<set $KGZdead = rand(KGZday * 20, KGZday * 30)>>
			You ran to the warehouse surrounded on all sides dead.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 12)>> <<gt 'KGZfight'>>
		<</actCLA>>
		<</actCLA>>
		<<actCLA 'Probivatsya infirmary'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZplace = 14>>
			<<set $KGZbatl = 0>>
			<<set $KGZdead = rand(KGZday * 20, KGZday * 30)>>
			You ran into the hospital surrounded on all sides dead.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 12)>> <<gt 'KGZfight'>>
		<</actCLA>>
		<</actCLA>>
		<<actCLA 'Probivatsya armory'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZplace = 15>>
			<<set $KGZbatl = 0>>
			<<set $KGZdead = rand(KGZday * 20, KGZday * 30)>>
			You ran into the hospital surrounded on all sides dead.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 12)>> <<gt 'KGZfight'>>
		<</actCLA>>
		<</actCLA>>
		<<actCLA 'Probivatsya in garage'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZplace = 16>>
			<<set $KGZbatl = 0>>
			<<set $KGZdead = rand(KGZday * 20, KGZday * 30)>>
			You ran into the hospital surrounded on all sides dead.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 12)>> <<gt 'KGZfight'>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
<</widget>>
:: KGZvihod13_macro[widget]
<<widget 'KGZvihod13'>>
	<<actCLA 'Exit at Fort Bragg'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 11>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search the warehouse'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		Noiselessly you started searching the dark warehouse.
		<<set $udacharand = rand(0, 1)>>
		<<if getvar("$udacharand") == 1>>
			<<set $KGZsuprand = rand(1, 3)>>
			<<set $KGZsup += $KGZsuprand>>
			You have found the diet <<KGZsuprand>> days
		<<elseif getvar("$udacharand") == 0>>
			<<set $KGZdead = rand(KGZday * 5, KGZday * 10)>>
			On the box seemed barely visible in the dark and dead with uterine howling toward you.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
		<</actCLA>>
			$exit
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod14_macro[widget]
<<widget 'KGZvihod14'>>
	<<actCLA 'Exit at Fort Bragg'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 11>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search the infirmary'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		Noiselessly you started searching the dark infirmary.
		<<set $udacharand = rand(0, 1)>>
		<<if getvar("$udacharand") == 1>>
			<<set $KGZmedkit += 1>>
			You have found a first aid kit
		<<elseif getvar("$udacharand") == 0>>
			<<set $KGZdead = rand(KGZday * 5, KGZday * 10)>>
			On the box seemed barely visible in the dark and dead with uterine howling toward you.
			<<actCLA 'Srazhatsya'>>
			<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
		<</actCLA>>
			$exit
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod15_macro[widget]
<<widget 'KGZvihod15'>>
	<<actCLA 'Exit at Fort Bragg'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 11>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Search armory'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<!-- !!KGZplace = 2-->
		<<set $KGZbatl = 0>>
		<<if getvar("$KGZfortOru") == 1>>
			In Munitions nothing useful.
		<<elseif getvar("$KGZfortOru") == 0>>
			<<set $KGZfortOru = 1>>
			In Munitions you find ammunition for machine 300 pieces and 10 grenades.
			<<set $KGZgranade += 10>>
			<<set $bullet3 += 300>>
		<</if>>
		.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod16_macro[widget]
<<widget 'KGZvihod16'>>
	<<actCLA 'Exit at Fort Bragg'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 11>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZgruzovik") == 0>>
		<<actCLA 'Climb into the truck'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<!-- !!KGZplace = 2-->
			<<set $KGZbatl = 0>>
			<<if getvar("$KGZgruzBenz") == 1>>
				You sat in the cab on the driver''s seat and brought the truck.
				<<actCLA 'Go'>>
					Truck uterine growled jumped into the courtyard of the fort where a crowd had gathered the dead, you go to cut into the crowd and began to push the ghouls, the engine speed drops, the engine roared overwrought gliding over crushed bodies, dead hands clung to the cabin. Some ghouls hung on the cabin in the mirror was clear that the body you have climbed too dead. Gate to the fort closed and they have to knock.
					<<actCLA 'Clear the gate'>>
						You disperse truck hit the gate of the fort. You strongly shaken and rattled the gate collapsed. Something like a truck drove out of the courtyard of the fort on the highway clogged.
						<<actCLA 'Drive along the highway into town'>>
							<<set $KGZgruzovik = 1>>
							<<set $KGZplace = 10>>
							<<set $KGZplaceA = 9>>
							<<set $KGZdead = rand(KGZday * 50, KGZday * 100)>>
							Your truck surrounded by a ring of the dead tried to clear the road of traffic jams. But you get stuck. There is no choice, already dead truck stuck like flies.
							<<actCLA 'Srazhatsya'>>
							<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
						<</actCLA>>
						<</actCLA>>
						<<actCLA 'Ride on the highway out of town'>>
							<<set $KGZgruzovik = 2>>
							<<set $KGZplace = 10>>
							<<set $KGZplaceA = 11>>
							<<set $KGZdead = rand(KGZday * 50, KGZday * 100)>>
							Your truck surrounded by a ring of the dead tried to clear the road of traffic jams. But you get stuck. There is no choice, already dead truck stuck like flies.
							<<actCLA 'Srazhatsya'>>
							<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
						<</actCLA>>
						<</actCLA>>
						<<actCLA 'To go along the side of the city'>>
							<<set $KGZgruzovik = 3>>
							<<set $KGZplace = 10>>
							<<set $KGZplaceA = 7>>
							<<set $KGZdead = rand(KGZday * 50, KGZday * 100)>>
							Your truck surrounded by a ring of the dead went on slippery roadside. When the truck crushed corpses wheel very punt and you still make a mistake, the truck slid into a ditch and overturned. There is no choice, already dead truck stuck like flies.
							<<actCLA 'Srazhatsya'>>
							<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
						<</actCLA>>
						<</actCLA>>
						<<actCLA 'To go along the side of the city'>>
							<<set $KGZgruzovik = 4>>
							<<set $KGZplace = 10>>
							<<set $KGZplaceA = 13>>
							<<set $KGZdead = rand(KGZday * 50, KGZday * 100)>>
							Your truck surrounded by a ring of the dead went on slippery roadside. When the truck crushed corpses wheel very punt and you still make a mistake, the truck slid into a ditch and overturned. There is no choice, already dead truck stuck like flies.
							<<actCLA 'Srazhatsya'>>
							<<set $KGZdist = rand(5, 10)>> <<gt 'KGZfight'>>
						<</actCLA>>
						<</actCLA>>
					<</actCLA>>
				<</actCLA>>
			<<elseif getvar("$KGZgruzBenz") == 0>>
				<<set $KGZgruzBenzMark = 1>>
				Heck, empty tank truck, standing next column, you only need to fill.
			<</if>>
			<<actCLA 'Get out of the cab'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$KGZgruzBenzMark") == 1>>
		<<actCLA 'Exit at Fort Bragg'>>
			<<set $KGZhour += 1>>
			<<set $time.minutes += 1>>
			<<set $KGZbatl = 0>>
			<<set $KGZgruzBenz = 1>>
			You carefully tucked truck gasoline.
			<<actCLA 'Further'>>
			<<gt $curloc>>
		<</actCLA>>
		<</actCLA>>
	<</if>>
<</widget>>
:: KGZvihod100_macro[widget]
<<widget 'KGZvihod100'>>
	<<actCLA 'Wander through the dead city'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 100>>
		You went cautiously, trying not to stumble on the dead.
		<<set $KGZlocrand = rand(0, 100)>>
		<<if getvar("$KGZlocrand") >= 90 and getvar("$KGZlok") == 0>>
			<<set $KGZlok = 1>>
			You have found a solid house with iron bars on the windows
			<<actCLA 'Enter the house'>>
			<<set $KGZplace = 101>> <<gt $curloc>>
		<</actCLA>>
		<<elseif getvar("$KGZlocrand") >= 80 and getvar("$KGZlok2") == 0>>
			<<set $KGZlok2 = 1>>
			You find a large supermarket where when it sold a variety of goods
			<<actCLA 'Sign in to supermarket'>>
			<<set $KGZplace = 102>> <<gt $curloc>>
		<</actCLA>>
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the side of the highway'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZplaceA = 19>>
		<<set $KGZplace = 10>>
		<<set $KGZbatl = 0>>
		You went to the highway carefully, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<if getvar("$KGZlok") == 1>>
	<<actCLA 'Enter the house'>>
	<<setn $KGZhour += 1>> <<set $KGZplace = 101>> <<gt $curloc>>
<</actCLA>>

<</if>>
	<<if getvar("$KGZlok2") == 1>>
	<<actCLA 'Sign in to supermarket'>>
	<<setn $KGZhour += 1>> <<set $KGZplace = 102>> <<gt $curloc>>
<</actCLA>>

<</if>>
<</widget>>
:: KGZvihod102_macro[widget]
<<widget 'KGZvihod102'>>
	<<actCLA 'Get out of the supermarket'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 100>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Scour supermarket'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		You gently started to fumble in search of useful, trying not to stumble on the dead.
		<<set $udarand = rand(0, 100)>>
		<<if getvar("$udarand") >= 90>>
			<<set $tiprand = rand(0, 1)>>
			<<if getvar("$tiprand") == 0>>
			<<setn $KGZsup += 1>> 

		<</if>>
			<<if getvar("$tiprand") == 1>>
			<<setn $KGZmedkit += 1>> 

		<</if>>
		<</if>>
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod200_macro[widget]
<<widget 'KGZvihod200'>>
	<<actCLA 'Walk through the woods to the highway'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 10>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Walk through the woods from the highway'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 201>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvihod201_macro[widget]
<<widget 'KGZvihod201'>>
	<<actCLA 'Go to the forest'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 200>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
	<<actCLA 'Go to the farmhouse'>>
		<<set $KGZhour += 1>>
		<<set $time.minutes += 1>>
		<<set $KGZbatl = 0>>
		<<set $KGZplace = 202>>
		You went cautiously, trying not to stumble on the dead.
		<<actCLA 'Further'>>
		<<gt $curloc>>
	<</actCLA>>
	<</actCLA>>
<</widget>>
:: KGZvincent_macro[widget]
<<widget 'KGZvincent'>>
	<<if getvar("$KGZfortQW") == 1>>
	<<set $KGZfortQW = 2>>

<</if>>
	The fort has arsenal and warehouse with food, hospital and garage with trucks. But a lot of dead, really a lot. Several soldiers tried to break but died. Some tried to use flamethrowers, but still dead burn, they manage to reach the man and the end. From the fort should leave as soon as possible.
	<<actCLA 'Further'>>
	<<gt $curloc>>
<</actCLA>>
<</widget>>
:: KGZfizatk_macro[widget]
<<widget 'KGZfizatk'>>
	<<if getvar("$KGZweapon") == 0>>
		<<set $KGZuspeh = rand(0, 100)>>
		<<if getvar("$KGZuspeh") <= 30>>
			<<set $KGZdead -= 1>>
			You were very good ghouls fist on the head and he fell stopping moves.
		<<else>>
			Ghoul irreversible no attention to your punch.
		<</if>>
	<<elseif getvar("$KGZweapon") == 1>>
		<<set $KGZuspeh = rand(0, 100)>>
		<<if getvar("$KGZuspeh") <= 50>>
			<<set $KGZdead -= 1>>
			You were very good ghouls club head and he fell stopping moves.
		<<else>>
			Ghoul irreversible no attention to your clubbing.
		<</if>>
	<<elseif getvar("$KGZweapon") == 2>>
		<<set $KGZuspeh = rand(0, 100)>>
		<<if getvar("$KGZuspeh") <= 70>>
			<<set $KGZdead -= 1>>
			You were very good ghouls ax on the head and he fell stopping moves.
		<<else>>
			Ghoul irreversible no attention to your ax blow.
		<</if>>
	<</if>>
	<<if getvar("$KGZdead") > 0>>
		<<set $kgzuron = rand(KGZdead * 2, KGZdead * 5)>>
		<<set $KGZHP -= $kgzuron>>
		<<KGZdead>> dead clutching at you, trying to tear.
		<b><font color="red">you have caused damage <<kgzuron>> units.</font></b>
	<</if>>
<</widget>>
:: KGZgunatk_macro[widget]
<<widget 'KGZgunatk'>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<if getvar("$KGZdist") <= 5>>
		<<if getvar("$KGZuspeh") <= 90>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<elseif getvar("$KGZdist") <= 10>>
		<<if getvar("$KGZuspeh") <= 80>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<else>>
		<<if getvar("$KGZuspeh") <= 70>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<</if>>
<</widget>>
:: KGZgunatk2_macro[widget]
<<widget 'KGZgunatk2'>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<if getvar("$KGZdist") <= 5>>
		<<if getvar("$KGZuspeh") <= 100>>
			<<set $KGZdead -= 1>>
			You have thrust the charge shot in the head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<elseif getvar("$KGZdist") <= 10>>
		<<if getvar("$KGZuspeh") <= 70>>
			<<set $KGZdead -= 1>>
			You have thrust the charge shot in the head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<else>>
		<<if getvar("$KGZuspeh") <= 50>>
			<<set $KGZdead -= 1>>
			You have thrust the charge shot in the head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<</if>>
<</widget>>
:: KGZgunatk3_macro[widget]
<<widget 'KGZgunatk3'>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<if getvar("$KGZdist") <= 5>>
		<<if getvar("$KGZuspeh") <= 70>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<elseif getvar("$KGZdist") <= 10>>
		<<if getvar("$KGZuspeh") <= 95>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<<else>>
		<<if getvar("$KGZuspeh") <= 85>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You hit the dead.
		<</if>>
	<</if>>
<</widget>>
:: KGZgunatk4_macro[widget]
<<widget 'KGZgunatk4'>>
	<<warn 'JUMP MARKER ENCOUNTERED: :KGZmarkgun'>>
	<<set $KGZbulgun -= 1>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<if getvar("$KGZdead") > 0>>
		<<if getvar("$KGZdist") <= 5>>
			<<if getvar("$KGZuspeh") <= 80>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<<elseif getvar("$KGZdist") <= 10>>
			<<if getvar("$KGZuspeh") <= 70>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<<else>>
			<<if getvar("$KGZuspeh") <= 60>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<</if>>
	<</if>>
	<<if getvar("$KGZbulgun") > 0>>
	<<warn 'JUMP COMMAND ENCOUNTERED: jump KGZmarkgun'>>

<</if>>
<</widget>>
:: KGZgunatk5_macro[widget]
<<widget 'KGZgunatk5'>>
	<<warn 'JUMP MARKER ENCOUNTERED: :KGZmarkgunb'>>
	<<set $KGZbulgun -= 1>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<if getvar("$KGZdead") > 0>>
		<<if getvar("$KGZdist") <= 5>>
			<<if getvar("$KGZuspeh") <= 70>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<<elseif getvar("$KGZdist") <= 10>>
			<<if getvar("$KGZuspeh") <= 60>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<<else>>
			<<if getvar("$KGZuspeh") <= 50>>
				<<set $KGZdead -= 1>>
				You put a bullet in his head and he fell ghoul stopping moves.
			<<else>>
				You hit the dead.
			<</if>>
		<</if>>
	<</if>>
	<<if getvar("$KGZbulgun") > 0>>
	<<warn 'JUMP COMMAND ENCOUNTERED: jump KGZmarkgunb'>>

<</if>>
<</widget>>
:: KGZdeadmanatk_macro[widget]
<<widget 'KGZdeadmanatk'>>
	<<if getvar("$KGZdist") > 0>>
	<<setn $KGZdist -= 1>>

<</if>>
	<<if getvar("$KGZdead") > 0 and getvar("$KGZdist") <= 2>>
		<<set $kgzuron = rand(KGZdead * 2, KGZdead * 5)>>
		<<set $KGZHP -= $kgzuron>>
		<<KGZdead>> dead clutching at you, trying to tear.
		<b><font color="red">you have caused damage <<kgzuron>> units.</font></b>
	<<elseif getvar("$KGZdist") > 2 and getvar("$KGZdead") > 0>>
		<<KGZdead>> The Dead wheezing and limping approach you.
	<</if>>
<</widget>>
:: KGZgranatk_macro[widget]
<<widget 'KGZgranatk'>>
	<<set $KGZuspeh = rand(0, 100)>>
	<<set $KGZgranade -= 1>>
	You threw a grenade into the Dead
	<<if getvar("$KGZdist") <= 5>>
		<<set $KGZdist += rand(1, 5)>>
		<<set $KGZdead -= rand(5, 20)>>
		<<set $KGZHP -= rand(5, 20)>>
		Powerful explosion threw the dead in different directions
		You hurt by a grenade
	<<elseif getvar("$KGZdist") <= 10>>
		<<set $KGZdist += rand(1, 3)>>
		<<set $KGZdead -= rand(3, 10)>>
		Powerful explosion threw the dead in different directions
	<<else>>
		<<if getvar("$KGZuspeh") <= 5>>
			<<set $KGZdead -= 1>>
			You put a bullet in his head and he fell ghoul stopping moves.
		<<else>>
			You do not dokinuli grenade and it exploded harmlessly.
		<</if>>
	<</if>>
<</widget>>
