:: Kikatak
<<set $here = 'Kikatak'>>
<<set $ARGS = $location_var[$here]>>
<<if $location_var[$here][0] == 'player'>>
	<<set $defsumV = $agilV + $reactV + $KikDefV>>
	<<set $defkofV = $defsumV * 20 / 100>>
	<<set $defV = rand(defsumV - defkofV, defsumV + defkofV)>>
	<<if $popad >= $defV * 2>>
		<b><font color="green">HIT</font></b>
		<<set $damageKrit = $damage * 20 / 100>>
		<<set $damage += $damageKrit>>
		<<set $healthV -= $damage>>
		<<set $pointKik += 1>>
		<font color="green">You have dealt <<damage>> points of damage.</font>
		<<if $damage >= $healthV * 20 / 100>>
			<<set $pointKik += 1>>
			<font color="green"><<$boydesc>> falls to the ground.</font>
			<<if $healthV < (vitalV * 10 + strenV * 5) / 4>>
				<font color="green"><<$boydesc>> is knocked out. You've won!</font>
				<<xgt 'enderKik' 'winKO'>>
				$exit
			<</if>>
		<</if>>
	<<elseif $popad < $defV * 2 and $popad >= $defV>>
		<font color="green">Contact</font>
		<<set $healthV -= $damage>>
		<<set $pointKik += 1>>
		<font color="green">You have dealt <<damage>> points of damage.</font>
		<<if $damage >= $healthV * 20 / 100>>
			<<set $pointKik += 1>>
			<font color="green"><<$boydesc>> falls to the ground.</font>
			<<if $healthV < (vitalV * 10 + strenV * 5) / 4>>
				<font color="green"><<$boydesc>> is knocked out. You've won!</font>
				<<xgt 'enderKik' 'winKO'>>
				$exit
			<</if>>
		<</if>>
	<<elseif $popad < $defV>>
		<font color="red">You've missed.</font>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'enemy'>>
	<<set $defsum = $pc.skillLevel("agility") + $pc.skillLevel("reaction") + $pc.skillLevel("defense")>>
	<<set $defkof = $defsum * 20 / 100>>
	<<set $def = rand(defsum - defkof, defsum + defkof)>>
	<<if $popad >= $def * 2>>
		<b><font color="red">You've gotten hit.</font></b>
		<<set $damageKrit = $damage * 20 / 100>>
		<<set $damage += $damageKrit>>
		<<set $pc.pcs_health -= $damage>>
		<<set $pointKikV += 1>>
		<font color="red">You have received <<damage>> points of damage.</font>
		<<if $damage >= $pc.pcs_health * 20 / 100>>
			<<set $pointKikV += 1>>
			<font color="red">You have fallen to the ground.</font>
			<<if $pc.pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4>>
				<font color="red">You are knocked out. You've lost!</font>
				<<xgt 'enderKik' 'lossKO'>>
				$exit
			<</if>>
		<</if>>
	<<elseif $popad < $def * 2 and $popad >= $def>>
		<font color="red">You've gotten hit.</font>
		<<set $pc.pcs_health -= $damage>>
		<<set $pointKikV += 1>>
		<font color="red">You have received <<damage>> points of damage.</font>
		<<if $damage >= $pc.pcs_health * 20 / 100>>
			<<set $pointKikV += 1>>
			<font color="red">You have fallen to the ground.</font>
			<<if $pc.pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4>>
				<font color="red">You are knocked out. You've lost!</font>
				<<xgt 'enderKik' 'lossKO'>>
				$exit
			<</if>>
		<</if>>
	<<elseif $popad < $def>>
		<font color="green">Missed</font>
	<</if>>
<</if>>
