123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- # Kikatak
- if $ARGS[0] = 'player':
- defsumV = agilV + reaktV + KikDefV
- defkofV = defsumV * 20 / 100
- defV = rand(defsumV - defkofV, defsumV + defkofV)
- if popad >= defV * 2:
- '<b><font color="green">CRETE</font></b>'
- damageKrit = damage * 20 / 100
- damage += damageKrit
- healthV -= damage
- pointKik += 1
- '<font color="green">You applied <<damage>> points of damage</font>'
- if damage >= healthV * 20 / 100:
- 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
- elseif popad < defV * 2 and popad >= defV:
- '<font color="green">Contact</font>'
- healthV -= damage
- pointKik += 1
- '<font color="green">You applied <<damage>> points of damage</font>'
- if damage >= healthV * 20 / 100:
- 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
- elseif popad < defV:
- '<font color="red">Slip</font>'
- end
- end
- if $ARGS[0] = 'enemy':
- defsum = agil + reakt + KikDef
- defkof = defsum * 20 / 100
- def = rand(defsum - defkof, defsum + defkof)
- if popad >= def * 2:
- '<b><font color="red">CRETE</font></b>'
- damageKrit = damage * 20 / 100
- damage += damageKrit
- health -= damage
- pointKikV += 1
- '<font color="red">You have caused <<damage>> points of damage</font>'
- if damage >= health * 20 / 100:
- 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
- elseif popad < def * 2 and popad >= def:
- '<font color="red">Contact</font>'
- health -= damage
- pointKikV += 1
- '<font color="red">You have caused <<damage>> points of damage</font>'
- if damage >= health * 20 / 100:
- 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
- elseif popad < def:
- '<font color="green">Slip</font>'
- end
- end
- --- Kikatak ---------------------------------
|