123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- # atakA
- if $ARGS[0] = 'atak':
- cla
- !расчет попадания уворота
- set poSp = speed * 20/100
- set uvAg = agilV * 20/100
- set poBox = react * 20/100
- set uvBox = reactV * 20/100
- set popad = rand(react - poBox, react + poBox) + rand(speed-poSp, speed + poSp) + bonusSh
- set uvorot = rand(reactV - uvBox, reactV + uvBox) + rand(agilV-uvAg, agilV + uvAg)
- set uvorKoef = uvorot * 50/100
- set popKoef = popad * 50/100
- if popad > uvorot:
- if popad >= uvorot + uvorKoef:
- !крит, очень точное попадание
- '<b><font color="green">critical hits</font></b>'
- xgt 'atakA', 'uronKrit'
- end
- if popad < uvorot+uvorKoef:
- !нормальное попадание
- !атаковал противник
- '<b><font color="green">Contact</font></b>'
- xgt 'atakA', 'uron'
- end
- end
- if popad <= uvorot:
- '<b><font color="red">is washed</font></b>'
- xgt 'fight', 'sta'
- end
- end
- if $ARGS[0] = 'uronKrit':
- cla
- set damKoef = damTip * 20 / 100
- set damage = rand(damTip + damKoef, damTip + damKoef * 2)
- if damTipM > 0:
- set damKoefM = damTipM * 20/100
- set damageM = rand(damTipM + damKoefM, damTipM + damKoefM * 2)
- end
- xgt 'atakA', 'damage'
- end
- if $ARGS[0] = 'uron':
- cla
- set damKoef = damTip * 20 / 100
- set damage = rand(damTip - damKoef, damTip + damKoef)
- if damTipM > 0:
- set damKoefM = damTipM * 20/100
- set damageM = rand(damTipM - damKoefM, damTipM + damKoefM)
- end
- xgt 'atakA', 'damage'
- end
- if $ARGS[0] = 'damage':
- cla
- if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0:
- if dospehV > 0:set damageV -= dospehDefV & set dospehEn -= 1
- if damage < 0:set damage = 0
- set healthV -= damage
- if damTipM > 0:
- set mannaV -= damageM
- set manna += damageM
- '<b><font color="green">you have ingested <<damageM>> units of manna from the enemy.</font></b>'
- end
- !set manna -= damageM
- if eleSh > 0:
- set stunV = rand(eleSh, eleSh * 3)
- '<b><font color="green"><<$nameV>> paralyzed <<stunV>> rounds</font></b>'
- end
- '<b><font color="green">You have caused damage <<damage>> units</font></b>'
- !'<b><font color="red">caused damage your manna <<damageM>> units</font></b>'
- if zerkaloV > 0:
- set zerkaloV -= 1
- set health -= damage
- '<b><font color="red"><<$nameV>> reflected the damage and you got <<damage>> points of damage</font></b>'
- end
- xgt 'fight', 'sta'
- end
- if defenceV > 0 and klonV <= 0 and unmaterialV <= 0:
- !set damSum = damage + damageM
- !set defence -= damSum
- set defenceV -= damage
- '<b><font color="green">You have caused damage <<damage>> Protection of the enemy units</font></b>'
- xgt 'fight', 'sta'
- end
- if klonV > 0 and unmaterialV <= 0:
- set klonV -= 1
- '<b><font color="green">Destroyed enemy clone</font></b>'
- xgt 'fight', 'sta'
- end
- if unmaterialV > 0:
- set unmaterialV -= 1
- '<b><font color="red">Your shot went through the opponent´s body. Opponents do not materials</font></b>'
- xgt 'fight', 'sta'
- end
- if barierV > 0:
- !барьер именитета для урона
- if barierV >= damage:
- '<b><font color="red"><<$nameV>> easily withstood your butt</font></b>'
- xgt 'fight', 'sta'
- end
- if barierV < damage:
- !set manna -= damageM
- !set health -= damage
- set damage -= barierV
- set healthV -= damage
- if damTipM > 0:
- set mannaV -= damageM
- set manna += damageM
- '<b><font color="green">you have ingested <<damageM>> units of manna from the enemy.</font></b>'
- end
- if eleSh > 0:
- set stunV = rand(eleSh, eleSh * 3)
- '<b><font color="green"><<$nameV>> paralyzed <<stunV>> rounds</font></b>'
- end
- '<b><font color="green">You have caused damage <<damage>> units</font></b>'
- !'<b><font color="red">caused damage your manna <<damageM>> units</font></b>'
- if zerkaloV > 0:
- set zerkaloV -= 1
- set health -= damage
- '<b><font color="red">Enemy reflected damage and you got <<damage>> points of damage</font></b>'
- end
- end
- xgt 'fight', 'sta'
- end
- end
- if $ARGS[0] = 'atakW':
- cla
- !расчет попадания уворота
- set poSp = speed * 20 / 100
- set uvAg = agilV * 20 / 100
- set poBox = react * 20 / 100
- set uvBox = reactV * 20 / 100
- set popad = rand(react - poBox, react + poBox) + rand(speed - poSp, speed + poSp)
- set uvorot = rand(reactV - uvBox, reactV + uvBox) + rand(agilV - uvAg, agilV + uvAg)
- set uvorKoef = uvorot * 50 / 100
- set popKoef = popad * 50 / 100
- if popad > uvorot:
- if popad >= uvorot + uvorKoef:
- !крит, очень точное попадание
- '<b><font color="red">critical hits</font></b>'
- xgt 'atakA', 'uronKritW'
- end
- if popad < uvorot+uvorKoef:
- !нормальное попадание
- '<b><font color="red">Contact</font></b>'
- xgt 'atakA', 'uronW'
- end
- end
- if popad <= uvorot:
- '<b><font color="green">is washed</font></b>'
- xgt 'fight', 'sta'
- end
- end
- if $ARGS[0] = 'uronKritW':
- cla
- set damKoef = damTip * 20 / 100
- set damage = rand(damTip + damKoef, damTip + damKoef * 2)
- set damKoefM = damTipM * 20 / 100
- set damageM = rand(damTipM + damKoefM, damTipM + damKoefM * 2)
- xgt 'atakA', 'damageW'
- end
- if $ARGS[0] = 'uronW':
- cla
- set damKoef = damTip * 20 / 100
- set damage = rand(damTip - damKoef, damTip + damKoef)
- set damKoefM = damTipM * 20 / 100
- set damageM = rand(damTipM - damKoefM, damTipM + damKoefM)
- xgt 'atakA', 'damageW'
- end
- if $ARGS[0] = 'damageW':
- cla
- if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0:
- if dospehV > 0:set damageV -= dospehDefV & set dospehEn -= 1
- if damage < 0:set damage = 0
- set healthV -= damage
- set mannaV -= damageM
- '<b><font color="green">You are harmed <<damage>> units</font></b>'
- '<b><font color="green">You have caused damage to the enemy manna <<damageM>> units</font></b>'
- if zerkaloV > 0:
- set zerkaloV -= 1
- set health -= damage
- '<b><font color="red"><<$nameV>> reflected the damage and you got <<damage>> points of damage</font></b>'
- end
- xgt 'fight', 'sta'
- end
- if defenceV > 0 and klonV <= 0 and unmaterialV <= 0:
- set damSum = damage + damageM
- set defenceV -= damSum
- !set defenceV -= damage
- '<b><font color="green">You have caused damage <<damSum>> Protection of the enemy units</font></b>'
- xgt 'fight', 'sta'
- end
- if klonV > 0 and unmaterialV <= 0:
- set klonV -= 1
- '<b><font color="green">Destroyed enemy clone</font></b>'
- xgt 'fight', 'sta'
- end
- if unmaterialV > 0:
- set unmaterialV -= 1
- '<b><font color="red">Your shot went through the opponent´s body. Opponents do not materials</font></b>'
- xgt 'fight', 'sta'
- end
- if barierV > 0:
- !барьер именитета для урона
- if barierV >= damage:
- '<b><font color="red"><<$nameV>> easily withstood your butt</font></b>'
- xgt 'fight', 'sta'
- end
- if barierV < damage:
- set mannaV -= damageM
- set healthV -= damage
- !set healthV -= damage
- '<b><font color="green">You have caused damage <<damage>> units</font></b>'
- '<b><font color="green">You have caused damage to the enemy manna <<damageM>> units</font></b>'
- if zerkaloV > 0:
- set zerkaloV -= 1
- set health -= damage
- '<b><font color="red">Enemy reflected damage and you got <<damage>> points of damage</font></b>'
- end
- end
- xgt 'fight', 'sta'
- end
- end
- --- atakA ---------------------------------
|