# 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
'<<$boydesc>> falls to the canvas'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boydesc>> 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
'<<$boydesc>> falls to the canvas'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boydesc>> is knocked out. This is a victory!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV:
'Miss'
end
end
if $ARGS[0] = 'enemy':
defsum = pcs_agil + pcs_react + pcs_def
defkof = defsum * 20 / 100
def = rand(defsum - defkof, defsum + defkof)
if popad >= def * 2:
'HIT'
damageKrit = damage * 20 / 100
damage += damageKrit
pcs_health -= damage
pointKikV += 1
'You have recieved <> points of damage'
if damage >= pcs_health * 20 / 100:
pointKikV += 1
'You have fallen to the canvas'
if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
'You are knocked out. This means defeat'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def * 2 and popad >= def:
'Contact'
pcs_health -= damage
pointKikV += 1
'You have recieved <> points of damage'
if damage >= pcs_health * 20 / 100:
pointKikV += 1
'You have fallen into the canvas'
if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
'You are knocked out. This means defeat'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def:
'Miss'
end
end
--- Kikatak ---------------------------------