# kikbox if $args[0] = 'start': '
Round 1
' *nl '
' act 'Start Fight': gt 'kikbox', 'fight' end end if $ARGS[0] = 'fight': gs 'befKik' '======================== (ROUND <>) ================= ==========' if minround = 1:'the fight 0:30' if minround = 2:'the fight 1:00' if minround = 3:'the fight 1:30' if minround = 4:'the fight 2:00' if minround = 5:'the fight 2:30' '<<$nameV>> Life <>, Endurance <>' 'Your life <>, Endurance <>' '=============================================== ===========' 'Your points <>Points opponent <>' '=============================================== ===========' gs 'initKik' if hod = 0: !Player attacks 'You can attack' act 'Apply fast Jeb': cla set damage = rand(stren/12, stren/8) if damage <= 0:set damage = 1 set koefatak = (speed + reakt + jab) * 2 set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) 'You deal with a quick jab step forward.' gs 'Kikatak', 'player' xgt 'kikbox', 'sta' end act 'Apply power punch': cla set damkoef = stren * 20 / 100 set damage = rand(stren - damkoef, stren + damkoef) if damage <= 0:set damage = 1 set koefatak = (speed + reakt + punch) set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) 'You apply a powerful punch.' gs 'Kikatak', 'player' xgt 'kikbox', 'sta' end act 'Footed strike': cla set damkoef = stren * 20 / 100 set damage = rand((stren - damkoef) * 3, (stren + damkoef) * 3) if damage <= 0:set damage = 1 set koefatak = (speed + reakt + kik) / 2 set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) 'You apply a kick powerful.' gs 'Kikatak', 'player' xgt 'kikbox', 'sta' end end if hod = 1: !Enemy attacks '<<$nameV>> attacks' set tiprand = rand(0, 2) if tiprand = 0: set damage = rand(strenV / 12, strenV / 8) if damage <= 0:set damage = 1 set koefatak = (speedV + reaktV + JabV) * 2 set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) '<<$nameV>> deals with quick jab step forward.' gs 'Kikatak', 'enemy' xgt 'kikbox', 'sta' end if tiprand = 1: set damkoef = strenV * 20/100 set damage = rand(strenV - damkoef, strenV + damkoef) if damage <= 0:set damage = 1 set koefatak = (speedV + reaktV + punchV) set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) '<<$nameV>> applies the power punch.' gs 'Kikatak', 'enemy' xgt 'kikbox', 'sta' end if tiprand = 2: set damkoef = strenV * 20 / 100 set damage = rand((strenV - damkoef) * 3, (strenV + damkoef) * 3) if damage <= 0:set damage = 1 set koefatak = (speedV + reaktV + kikV) / 2 set koefpop = koefatak * 20 / 100 set popad = rand(koefatak - koefpop, koefatak + koefpop) '<<$nameV>> tries for a kick.' gs 'Kikatak', 'enemy' xgt 'kikbox', 'sta' end end end if $ARGS[0] = 'sta': cla set ionce = 0 '=============================================== ===========' if minround = 1:'the fight 1:00' if minround = 2:'the fight 1:30' if minround = 3:'the fight 2:00' if minround = 4:'the fight 2:30' if minround = 5:'the fight 3:00' '=============================================== ===========' '<<$nameV>> Life <>, Endurance <>' 'Your life <>, Endurance <>' '=============================================== ===========' if health <= 0: 'You lost by TKO' gt 'enderKik', 'lossKO' exit end if healthV <= 0: '<<$nameV>> lost by TKO' gt 'enderKik', 'winKO' exit end act 'Further':gt 'kikbox', 'fight' if minround = 5: cla *clr 'Rang the gong indicating the end of the round <>.' set minround = 0 set round += 1 act 'Back to the corner': cla *clr '
' 'You try to rest as best as you can.' act 'Prepare': if round <= formula: cla *clr '
Round <>
' *nl '
' act 'In the ring':gt 'kikbox', 'fight' else if pointKik > pointKikV: gt 'enderKik', 'win' end if pointKik < pointKikV: gt 'enderKik', 'loss' end if pointKik = pointKikV: gt 'enderKik', 'draw' end end end end end end --- kikbox ---------------------------------