# Kikatak
if $ARGS[0] = 'player':
set defsumV = agilV + reaktV + KikDefV
set defkofV = defsumV * 20/100
set defV = RAND(defsumV - defkofV, defsumV + defkofV)
	if popad >= defV * 2:
	'<B><font color = green>CRETE</font></B>'
	set damageKrit = damage * 20/100
	set damage += damageKrit
	set healthV -= damage
	set pointKik += 1
	'<font color = green>You applied <<damage>> points of damage</font>'
		if damage >= healthV * 20/100:
		set pointKik += 1
		'<font color = green><<$nameV>> fell to the ring</font>'
			if healthV < (vitalV*10 + strenV*5)/4:
			'<font color = green><<$nameV>> in a knockout. This is a victory!</font>'
			xgt 'enderKik','winKO'
			exit
			end
		end
	end
	if popad < defV*2 and popad >= defV:
	'<font color = green>Contact</font>'
	set healthV -= damage
	set pointKik += 1
	'<font color = green>You applied <<damage>> points of damage</font>'
		if damage >= healthV * 20/100:
		set pointKik += 1
		'<font color = green><<$nameV>> fell to the ring</font>'
			if healthV < (vitalV*10 + strenV*5)/4:
			'<font color = green><<$nameV>> in a knockout. This is a victory!</font>'
			xgt 'enderKik','winKO'
			exit
			end
		end
	end
	if popad < defV:
	'<font color = red>Slip</font>'
	end

end

if $ARGS[0] = 'enemy':
set defsum = agil + reakt + KikDef
set defkof = defsum * 20/100
set def = RAND(defsum - defkof, defsum + defkof)
	if popad >= def * 2:
	'<B><font color = red>CRETE</font></B>'
	set damageKrit = damage * 20/100
	set damage += damageKrit
	set health -= damage
	set pointKikV += 1
	'<font color = red>You have caused <<damage>> points of damage</font>'
		if damage >= health * 20/100:
		set pointKikV += 1
		'<font color = red>You have fallen into the ring</font>'
			if health < (vital*10 + stren*5)/4:
			'<font color = red>You are in a knockout. This defeat</font>'
			xgt 'enderKik','loss'
			exit
			end
		end
	end
	if popad < def*2 and popad >= def:
	'<font color = red>Contact</font>'
	set health -= damage
	set pointKikV += 1
	'<font color = red>You have caused <<damage>> points of damage</font>'
		if damage >= health * 20/100:
		set pointKikV += 1
		'<font color = red>You have fallen into the ring</font>'
			if health < (vital*10 + stren*5)/4:
			'<font color = red>You are in a knockout. This defeat</font>'
			xgt 'enderKik','loss'
			exit
			end
		end
	end
	if popad < def:
	'<font color = green>Slip</font>'
	end

end
--- Kikatak ---------------------------------

