# Kikatak
if $ARGS[0] = 'player':
defsumV = agilV + reactV + KikDefV
defkofV = defsumV * 20 / 100
defV = rand(defsumV - defkofV, defsumV + defkofV)
if popad >= defV * 2:
'HIT'
damageKrit = damage * 20 / 100
damage += damageKrit
healthV -= damage
pointKik += 1
'You have dealt <> points of damage'
if damage >= healthV * 20 / 100:
pointKik += 1
'<<$boy>> falls to the canvas'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boy>> is knocked out. This is a victory!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV * 2 and popad >= defV:
'Contact'
healthV -= damage
pointKik += 1
'You have dealt <> points of damage'
if damage >= healthV * 20 / 100:
pointKik += 1
'<<$boy>> falls to the canvas'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boy>> is knocked out. This is a victory!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV:
'Miss'
end
end
if $ARGS[0] = 'enemy':
defsum = agil + react + KikDef
defkof = defsum * 20 / 100
def = rand(defsum - defkof, defsum + defkof)
if popad >= def * 2:
'HIT'
damageKrit = damage * 20 / 100
damage += damageKrit
health -= damage
pointKikV += 1
'You have recieved <> points of damage'
if damage >= health * 20 / 100:
pointKikV += 1
'You have fallen to the canvas'
if health < (vital * 10 + stren * 5) / 4:
'You are knocked out. This means defeat'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def * 2 and popad >= def:
'Contact'
health -= damage
pointKikV += 1
'You have recieved <> points of damage'
if damage >= health * 20 / 100:
pointKikV += 1
'You have fallen into the canvas'
if health < (vital * 10 + stren * 5) / 4:
'You are knocked out. This means defeat'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def:
'Miss'
end
end
--- Kikatak ---------------------------------