# 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 ground.'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boydesc>> is knocked out. You''ve won!'
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 ground.'
if healthV < (vitalV * 10 + strenV * 5) / 4:
'<<$boydesc>> is knocked out. You''ve won!'
xgt 'enderKik', 'winKO'
exit
end
end
elseif popad < defV:
'You''ve missed.'
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:
'You''ve gotten hit.'
damageKrit = damage * 20 / 100
damage += damageKrit
pcs_health -= damage
pointKikV += 1
'You have received <> points of damage.'
if damage >= pcs_health * 20 / 100:
pointKikV += 1
'You have fallen to the ground.'
if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
'You are knocked out. You''ve lost!'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def * 2 and popad >= def:
'You''ve gotten hit.'
pcs_health -= damage
pointKikV += 1
'You have received <> points of damage.'
if damage >= pcs_health * 20 / 100:
pointKikV += 1
'You have fallen to the ground.'
if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
'You are knocked out. You''ve lost!'
xgt 'enderKik', 'lossKO'
exit
end
end
elseif popad < def:
'Missed'
end
end
--- Kikatak ---------------------------------