# atak if $ARGS[0] = 'player': cla !!!!!!! set tip = 0 !!!!!!! set strenA = stren set speedA = speed set agilA = agil set vitalA = vital !Навыки set boxingA = boxing !Параметры set healthA = health set BonusA = BonusAtak !!!!!!!!! set strenD = strenV set speedD = speedV set agilD = agilV set vitalD = vitalV !Навыки set boxingD = boxingV !Параметры set healthD = healthV set initBonusA = initBonus set initBonus = 0 set initBonusV = 0 set BonusD = BonusDefV if stunV <= 0:xgt 'atak', 'popad' if stunV > 0: '<<$nameV>> can not move a critical hit' xgt 'atak', 'uronKrit' end end if $ARGS[0] = 'enemy': cla !!!!!!! set tip = 1 !!!!!!! set strenA = strenV set speedA = speedV set agilA = agilV set vitalA = vitalV !Навыки set boxingA = boxingV !Параметры set healthA = healthV set BonusA = BonusAtakV !!!!!!!!!!!!!! set strenD = stren set speedD = speed set agilD = agil set vitalD = vital !Навыки set boxingD = boxing !Параметры set healthD = health set BonusD = BonusDef set initBonusA = initBonusV set initBonus = 0 set initBonusV = 0 if stun <= 0:xgt 'atak', 'popad' if stun > 0: 'You can not move a critical hit' xgt 'atak', 'uronKritV' end end if $ARGS[0] = 'popad': cla !расчет попадания уворота set poSp = speedA * 20/100 set uvAg = agilD * 20/100 set poBox = boxingA * 20/100 set uvBox = boxingD * 20/100 set popad = rand(boxingA - poBox, boxingA + poBox) + rand(speedA - poSp, speedA + poSp) + BonusA + initBonusA set uvorot = rand(boxingD - uvBox, boxingD + uvBox) + rand(agilD - uvAg, agilD + uvAg) + BonusD set uvorKoef = uvorot * 50/100 set popKoef = popad * 50/100 if popad > uvorot: if popad >= uvorot + uvorKoef: !крит, очень точное попадание if tip = 0: !атаковал игрок 'critical hits' xgt 'atak', 'uronKrit' end if tip = 1: !атаковал противник 'critical hits' xgt 'atak', 'uronKritV' end end if popad < uvorot+uvorKoef: !нормальное попадание if tip = 0: !атаковал игрок 'Contact' xgt 'atak', 'uron' end if tip = 1: !атаковал противник 'Contact' xgt 'atak', 'uronV' end end end if popad <= uvorot: if popad + popKoef <= uvorot: !критический промах if tip = 0: !атаковал игрок 'CRITICAL SLIP' xgt 'atak', 'uronKritV' end if tip = 1: !атаковал противник 'CRITICAL SLIP' xgt 'atak', 'uronKrit' end end if popad + popKoef > uvorot: !промах if tip = 0: !атаковал игрок 'is washed' xgt 'fight', 'sta' end if tip = 1: !атаковал противник 'is washed' xgt 'fight', 'sta' end end end end if $ARGS[0] = 'uronKrit': cla set damage = rand(stren, stren * 2) + weapbonus + magweapbonus if knife > 0: set knibon = knife + 1 set knife = 0 set damage = damage * knibon set knibon = 0 'your opponent flies throwing knife' end if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0: if dospehV > 0:set damage -= dospehDefV & set dospehEnV -= 1 if damage < 0:set damage = 0 set healthV -= damage if weaponTipe = 1:set bloodV += rand(weapon / 4, weapon / 2) if weaponTipe = 2:set stun += rand(1, 2) if weaponTipe = 3:set bloodV += rand(weapon / 4, weapon / 2) if stunner > 0: set stunner = 0 set stunV = rand(3, 6) 'You are paralyzed the enemy <> moves.' end 'Apply Done <> units' if zerkaloV > 0: set zerkaloV -= 1 set health -= damage '<<$nameV>> reflected the damage and you got <> points of damage' end xgt 'fight', 'sta' end if defenceV > 0 and klonV <= 0 and unmaterialV <= 0: set defenceV -= damage 'Protection of the enemy harmed <> units' xgt 'fight', 'sta' end if klonV > 0 and unmaterialV <= 0: set klonV -= 1 'Destroyed clone enemy, he still had <> clones' xgt 'fight', 'sta' end if unmaterialV > 0: set unmaterialV -= 1 'Your shot went straight through the opponent´s body. <<$nameV>> is not material' xgt 'fight', 'sta' end if barierV > 0: !барьер именитета для урона if barierV >= damage: '<<$nameV>> easily withstood your butt' xgt 'fight', 'sta' end if barierV < damage: set healthV -= damage if weaponTipe = 1:set bloodV += rand(weapon/4, weapon/2) if weaponTipe = 2:set stun += rand(1, 2) if weaponTipe = 3:set bloodV += rand(weapon/4, weapon/2) if stunner > 0: set stunV = rand(3, 6) 'You are paralyzed the enemy <> moves.' end 'Apply Done <> units' if zerkaloV > 0: set zerkaloV -= 1 set health -= damage '<<$nameV>> reflected the damage and you got <> points of damage' end end xgt 'fight', 'sta' end end if $ARGS[0] = 'uron': cla set stKo = stren * 20 / 100 set damage = rand(stren - stKo, stren + stKo) + weapbonus + magweapbonus if knife > 0: set knibon = knife + 1 set knife = 0 set damage = damage * knibon set knibon = 0 'your opponent flies throwing knife' end if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0: if dospehV > 0:set damage -= dospehDefV & set dospehEnV -= 1 if damage < 0:set damage = 0 set healthV -= damage if stunner > 0: set stunner = 0 set stunV = rand(1, 3) 'You are paralyzed the enemy <> moves.' end 'Apply Done <> units' if zerkaloV > 0: set zerkaloV -= 1 set health -= damage '<<$nameV>> reflected the damage and you got <> points of damage' end xgt 'fight', 'sta' end if defenceV > 0 and klonV <= 0 and unmaterialV <= 0: set defenceV -= damage 'Protection of the enemy harmed <> units' xgt 'fight', 'sta' end if klonV > 0 and unmaterialV <= 0: set klonV -= 1 'Destroyed clone enemy, he still had <> clones' xgt 'fight', 'sta' end if unmaterialV > 0: set unmaterialV -= 1 'Your shot went straight through the opponent´s body. <<$nameV>> is not material' xgt 'fight', 'sta' end if barierV > 0: !барьер именитета для урона if barierV >= damage: '<<$nameV>> easily withstood your butt' xgt 'fight', 'sta' end if barierV < damage: set healthV -= damage if stunner > 0: set stunV = rand(1, 3) 'You are paralyzed the enemy <> moves.' end 'Apply Done <> units' if zerkaloV > 0: set zerkaloV -= 1 set health -= damage '<<$nameV>> reflected the damage and you got <> points of damage' end end xgt 'fight', 'sta' end end if $ARGS[0] = 'uronKritV': cla set damage = rand(strenV, strenV * 2) + weapbonusV + magweapbonusV if knifeV > 0: set knibonV = knifeV + 1 set knifeV = 0 set damage = damage * knibonV set knibonV = 0 'you throwing knife flies' end if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0: if dospeh > 0:set damage -= dospehDef & set dospehEn -= 1 if damage < 0:set damage = 0 set health -= damage if weaponTipeV = 1:set blood += rand(weaponV/4, weaponV/2) if weaponTipeV = 2:set stunV += rand(1, 2) if weaponTipeV = 3:set blood += rand(weaponV/4, weaponV/2) if stunnerV > 0: set stunnerV = 0 set stun = rand(3, 6) '<<$nameV>> paralyzed you to <> moves.' end 'You harmed <> units' if zerkalo > 0: set zerkalo -= 1 set healthV -= damage 'You are repelled damage and <<$nameV>> to give <> points of damage' end xgt 'fight', 'sta' end if defence > 0 and klon <= 0 and unmaterial <= 0: set defence -= damage 'Protection of your harmed <> units' xgt 'fight', 'sta' end if klon > 0 and unmaterial <= 0: set klon -= 1 'destroy your clone, you have more <> clones' xgt 'fight', 'sta' end if unmaterial > 0: set unmaterial -= 1 'Strike the enemy flew right through your body. YOU is not material' xgt 'fight', 'sta' end if barier > 0: !барьер именитета для урона if barier >= damage: 'You can easily withstood the impact of the opponent' xgt 'fight', 'sta' end if barier < damage: set health -= damage if weaponTipeV = 1:set blood += rand(weaponV/4, weaponV/2) if weaponTipeV = 2:set stunV += rand(1, 2) if weaponTipeV = 3:set blood += rand(weaponV/4, weaponV/2) if stunnerV > 0: set stun = rand(3, 6) '<<$nameV>> paralyzed you to <> moves.' end 'You harmed <> units' if zerkalo > 0: set zerkalo -= 1 set healthV -= damage 'You are repelled damage and <<$nameV>> to give <> points of damage' end end xgt 'fight', 'sta' end end if $ARGS[0] = 'uronV': cla set stKo = strenV * 20/100 set damage = rand(strenV - stKo, strenV + stKo) + weapbonusV + magweapbonusV if knifeV > 0: set knibonV = knifeV + 1 set knifeV = 0 set damage = damage * knibonV set knibonV = 0 'you throwing knife flies' end if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0: if dospeh > 0:set damage -= dospehDef & set dospehEn -= 1 if damage < 0:set damage = 0 set health -= damage if stunnerV > 0: set stunnerV = 0 set stun = rand(3, 6) '<<$nameV>> paralyzed you to <> moves.' end 'You harmed <> units' if zerkalo > 0: set zerkalo -= 1 set healthV -= damage 'You are repelled damage and <<$nameV>> to give <> points of damage' end xgt 'fight', 'sta' end if defence > 0 and klon <= 0 and unmaterial <= 0: set defence -= damage 'Protection of your harmed <> units' xgt 'fight', 'sta' end if klon > 0 and unmaterial <= 0: set klon -= 1 'destroy your clone, you have more <> clones' xgt 'fight', 'sta' end if unmaterial > 0: set unmaterial -= 1 'Strike the enemy flew right through your body. YOU is not material' xgt 'fight', 'sta' end if barier > 0: !барьер именитета для урона if barier >= damage: 'You can easily withstood the impact of the opponent' xgt 'fight', 'sta' end if barier < damage: set health -= damage if stunnerV > 0: set stun = rand(3, 6) '<<$nameV>> paralyzed you to <> moves.' end 'You harmed <> units' if zerkalo > 0: set zerkalo -= 1 set healthV -= damage 'You are repelled damage and <<$nameV>> to give <> points of damage' end end xgt 'fight', 'sta' end end --- atak ---------------------------------