# Kikatak
if $ARGS[0] = 'player':
defsumV = agilV + reaktV + KikDefV
defkofV = defsumV * 20 / 100
defV = rand(defsumV - defkofV, defsumV + defkofV)
if popad >= defV * 2:
'CRETE'
damageKrit = damage * 20 / 100
damage += damageKrit
healthV -= damage
pointKik += 1
'You applied <> points of damage'
if damage >= healthV * 20 / 100:
pointKik += 1
'<<$nameV>> fell to the ring'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$nameV>> in a knockout. This is a victory!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV * 2 and popad >= defV:
'Contact'
healthV -= damage
pointKik += 1
'You applied <> points of damage'
if damage >= healthV * 20 / 100:
pointKik += 1
'<<$nameV>> fell to the ring'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$nameV>> in a knockout. This is a victory!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV:
'Slip'
end
end
if $ARGS[0] = 'enemy':
defsum = agil + reakt + KikDef
defkof = defsum * 20 / 100
def = rand(defsum - defkof, defsum + defkof)
if popad >= def * 2:
'CRETE'
damageKrit = damage * 20 / 100
damage += damageKrit
health -= damage
pointKikV += 1
'You have caused <> points of damage'
if damage >= health * 20 / 100:
pointKikV += 1
'You have fallen into the ring'
if health < (vital * 10 + stren * 5) / 4:
'You are in a knockout. This defeat'
xgt 'enderKik', 'loss'
exit
end
end
elseif popad < def * 2 and popad >= def:
'Contact'
health -= damage
pointKikV += 1
'You have caused <> points of damage'
if damage >= health * 20 / 100:
pointKikV += 1
'You have fallen into the ring'
if health < (vital * 10 + stren * 5) / 4:
'You are in a knockout. This defeat'
xgt 'enderKik', 'loss'
exit
end
end
elseif popad < def:
'Slip'
end
end
--- Kikatak ---------------------------------