123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- # atak
- menu_off = 1
- if $ARGS[0] = 'player':
- cla
- tip = 0
- strenA = pcs_stren
- speedA = speed
- agilA = pcs_agil
- vitalA = pcs_vital
- !Skills
- boxingA = boxing
- !Parameters
- healthA = pcs_health
- BonusA = BonusAtak
- strenD = strenV
- speedD = speedV
- agilD = agilV
- vitalD = vitalV
- !Skills
- boxingD = boxingV
- !Parameters
- healthD = healthV
- initBonusA = initBonus
- initBonus = 0
- initBonusV = 0
- BonusD = BonusDefV
- if stunV <= 0:
- xgt'atak','popad'
- elseif stunV > 0:
- '<b><font color = green><<$boydesc>> Can not move a critical hit</font></b>'
- xgt'atak','uronKrit'
- end
- end
- if $ARGS[0] = 'enemy':
- cla
- tip = 1
- strenA = strenV
- speedA = speedV
- agilA = agilV
- vitalA = vitalV
- !Skills
- boxingA = boxingV
- !Parameters
- healthA = healthV
- BonusA = BonusAtakV
- strenD = pcs_stren
- speedD = speed
- agilD = pcs_agil
- vitalD = pcs_vital
- !Skills
- boxingD = boxing
- !Parameters
- healthD = pcs_health
- BonusD = BonusDef
- initBonusA = initBonusV
- initBonus = 0
- initBonusV = 0
- if stun <= 0:
- xgt'atak','popad'
- elseif stun > 0:
- '<b><font color = red>YOU can not move a critical hit</font></b>'
- xgt'atak','uronKritV'
- end
- end
- if $ARGS[0] = 'popad':
- cla
- !payment hit dodge
- poSp = speedA*20/100
- uvAg = agilD*20/100
- poBox = boxingA*20/100
- uvBox = boxingD*20/100
- popad = RAND(boxingA-poBox,boxingA+poBox) + RAND(speedA-poSp,speedA+poSp) + BonusA + initBonusA
- uvorot = RAND(boxingD-uvBox,boxingD+uvBox) + RAND(agilD-uvAg,agilD+uvAg) + BonusD
- uvorKoef = uvorot*50/100
- popKoef = popad*50/100
- if popad > uvorot:
- if popad >= uvorot+uvorKoef:
- !Crete, very direct hit
- if tip = 0:
- !attack players
- '<b><font color = green>Critical hits</font></b>'
- xgt'atak','uronKrit'
- elseif tip = 1:
- !He attacks the enemy
- '<b><font color = red>Critical hits</font></b>'
- xgt'atak','uronKritV'
- end
- elseif popad < uvorot+uvorKoef:
- !Normal hit
- if tip = 0:
- !attack players
- '<b><font color = green>EYE</font></b>'
- xgt'atak','uron'
- elseif tip = 1:
- !He attacks the enemy
- '<b><font color = red>EYE</font></b>'
- xgt'atak','uronV'
- end
- end
- elseif popad <= uvorot:
- if popad+popKoef <= uvorot:
- !critical blunder
- if tip = 0:
- !attack players
- '<b><font color = red>CRITICAL SLIP</font></b>'
- xgt'atak','uronKritV'
- elseif tip = 1:
- !He attacks the enemy
- '<b><font color = green>CRITICAL SLIP</font></b>'
- xgt'atak','uronKrit'
- end
- elseif popad+popKoef > uvorot:
- !bloomer
- if tip = 0:
- !attack players
- '<b><font color = red>LOST</font></b>'
- xgt'fight','sta'
- elseif tip = 1:
- !He attacks the enemy
- '<b><font color = green>LOST</font></b>'
- xgt'fight','sta'
- end
- end
- end
- end
- if $ARGS[0] = 'uronKrit':
- cla
- damage = RAND(pcs_stren,pcs_stren*2) + weapbonus + magweapbonus
- if knife > 0:
- knibon = knife+1
- knife = 0
- damage = damage*knibon
- knibon = 0
- '<b><font color = green>The enemy flies your throwing knife</font></b>'
- end
- if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0:
- if dospehV > 0:damage = damage - dospehDefV & dospehEnV = dospehEnV - 1
- if damage < 0:damage = 0
- healthV = healthV - damage
- if weaponTipe = 1:bloodV = bloodV + RAND(weapon/4,weapon/2)
- if weaponTipe = 2:stun = stun + RAND(1,2)
- if weaponTipe = 3:bloodV = bloodV + RAND(weapon/4,weapon/2)
- if stunner > 0:
- stunner = 0
- stunV = RAND(3,6)
- '<b><font color = green>You paralyzed the enemy on <<stunV>> moves.</font></b>'
- end
- '<b><font color = green>Accept damage <<damage>> units</font></b>'
- if zerkaloV > 0:
- zerkaloV = zerkaloV - 1
- pcs_health = pcs_health - damage
- '<b><font color = red><<$boydesc>> reflected the damage and you get <<damage>> points of damage</font></b>'
- end
- xgt'fight','sta'
- elseif defenceV > 0 and klonV <= 0 and unmaterialV <= 0:
- defenceV = defenceV - damage
- '<b><font color = green>Protection of the enemy suffered damage <<damage>> units</font></b>'
- xgt'fight','sta'
- elseif klonV > 0 and unmaterialV <= 0:
- klonV = klonV - 1
- '<b><font color = green>Destroyed enemy clone, he still had <<KlonV>> Clones</font></b>'
- xgt'fight','sta'
- elseif unmaterialV > 0:
- unmaterialV = unmaterialV - 1
- '<b><font color = red>Your kick flew right through the opponent''s body. <<$boydesc>> Not material</font></b>'
- xgt'fight','sta'
- elseif barierV > 0:
- !imeniteta barrier for damage
- if barierV >= damage:
- '<b><font color = red><<$boydesc>> easily weathered blow your</font></b>'
- xgt'fight','sta'
- elseif barierV < damage:
- healthV = healthV - damage
- if weaponTipe = 1:bloodV = bloodV + RAND(weapon/4,weapon/2)
- if weaponTipe = 2:stun = stun + RAND(1,2)
- if weaponTipe = 3:bloodV = bloodV + RAND(weapon/4,weapon/2)
- if stunner > 0:
- stunV = RAND(3,6)
- '<b><font color = green>You paralyzed the enemy on <<stunV>> moves.</font></b>'
- end
- '<b><font color = green>Accept damage <<damage>> units</font></b>'
- if zerkaloV > 0:
- zerkaloV = zerkaloV - 1
- pcs_health = pcs_health - damage
- '<b><font color = red><<$boydesc>> reflected the damage and you get <<damage>> points of damage</font></b>'
- end
- end
- xgt'fight','sta'
- end
- end
- if $ARGS[0] = 'uron':
- cla
- stKo = pcs_stren*20/100
- damage = RAND(pcs_stren-stKo,pcs_stren+stKo) + weapbonus + magweapbonus
- if knife > 0:
- knibon = knife+1
- knife = 0
- damage = damage*knibon
- knibon = 0
- '<b><font color = green>The enemy flies your throwing knife</font></b>'
- end
- if defenceV <= 0 and klonV <= 0 and unmaterialV <= 0 and barierV <= 0:
- if dospehV > 0:damage = damage - dospehDefV & dospehEnV = dospehEnV - 1
- if damage < 0:damage = 0
- healthV = healthV - damage
- if stunner > 0:
- stunner = 0
- stunV = RAND(1,3)
- '<b><font color = green>You paralyzed the enemy on <<stunV>> moves.</font></b>'
- end
- '<b><font color = green>Accept damage <<damage>> units</font></b>'
- if zerkaloV > 0:
- zerkaloV = zerkaloV - 1
- pcs_health = pcs_health - damage
- '<b><font color = red><<$boydesc>> reflected the damage and you get <<damage>> points of damage</font></b>'
- end
- xgt'fight','sta'
- elseif defenceV > 0 and klonV <= 0 and unmaterialV <= 0:
- defenceV = defenceV - damage
- '<b><font color = green>Protection of the enemy suffered damage <<damage>> units</font></b>'
- xgt'fight','sta'
- elseif klonV > 0 and unmaterialV <= 0:
- klonV = klonV - 1
- '<b><font color = green>Destroyed enemy clone, he still had <<KlonV>> Clones</font></b>'
- xgt'fight','sta'
- elseif unmaterialV > 0:
- unmaterialV = unmaterialV - 1
- '<b><font color = red>Your kick flew right through the opponent''s body. <<$boydesc>> Not material</font></b>'
- xgt'fight','sta'
- elseif barierV > 0:
- !imeniteta barrier for damage
- if barierV >= damage:
- '<b><font color = red><<$boydesc>> easily weathered blow your</font></b>'
- xgt'fight','sta'
- elseif barierV < damage:
- healthV = healthV - damage
- if stunner > 0:
- stunV = RAND(1,3)
- '<b><font color = green>You paralyzed the enemy on <<stunV>> moves.</font></b>'
- end
- '<b><font color = green>Accept damage <<damage>> units</font></b>'
- if zerkaloV > 0:
- zerkaloV = zerkaloV - 1
- pcs_health = pcs_health - damage
- '<b><font color = red><<$boydesc>> reflected the damage and you get <<damage>> points of damage</font></b>'
- end
- end
- xgt'fight','sta'
- end
- end
- if $ARGS[0] = 'uronKritV':
- cla
- damage = RAND(strenV,strenV*2) + weapbonusV + magweapbonusV
- if knifeV > 0:
- knibonV = knifeV+1
- knifeV = 0
- damage = damage*knibonV
- knibonV = 0
- '<b><font color = red>As you fly throwing knife</font></b>'
- end
- if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0:
- if dospeh > 0:damage = damage - dospehDef & dospehEn = dospehEn - 1
- if damage < 0:damage = 0
- pcs_health = pcs_health - damage
- if weaponTipeV = 1:blood = blood + RAND(weaponV/4,weaponV/2)
- if weaponTipeV = 2:stunV = stunV + RAND(1,2)
- if weaponTipeV = 3:blood = blood + RAND(weaponV/4,weaponV/2)
- if stunnerV > 0:
- stunnerV = 0
- stun = RAND(3,6)
- '<b><font color = red><<$boydesc>> You paralyzed on <<stun>> moves.</font></b>'
- end
- '<b><font color = red>You harmed <<damage>> units</font></b>'
- if zerkalo > 0:
- zerkalo = zerkalo - 1
- healthV = healthV - damage
- '<b><font color = green>You are repelled and the damage <<$boydesc>> We received <<damage>> points of damage</font></b>'
- end
- xgt'fight','sta'
- elseif defence > 0 and klon <= 0 and unmaterial <= 0:
- defence = defence - damage
- '<b><font color = red>Your protection harmed <<damage>> units</font></b>'
- xgt'fight','sta'
- elseif klon > 0 and unmaterial <= 0:
- klon = klon - 1
- '<b><font color = red>It destroys your clone, Do you have more <<Klon>> Clones</font></b>'
- xgt'fight','sta'
- elseif unmaterial > 0:
- unmaterial = unmaterial - 1
- '<b><font color = green>Beat the enemy flew right through your body. YOU are not material</font></b>'
- xgt'fight','sta'
- elseif barier > 0:
- !imeniteta barrier for damage
- if barier >= damage:
- '<b><font color = green>You can easily withstand the impact of the enemy</font></b>'
- xgt'fight','sta'
- elseif barier < damage:
- pcs_health = pcs_health - damage
- if weaponTipeV = 1:blood = blood + RAND(weaponV/4,weaponV/2)
- if weaponTipeV = 2:stunV = stunV + RAND(1,2)
- if weaponTipeV = 3:blood = blood + RAND(weaponV/4,weaponV/2)
- if stunnerV > 0:
- stun = RAND(3,6)
- '<b><font color = red><<$boydesc>> You paralyzed on <<stun>> moves.</font></b>'
- end
- '<b><font color = red>You harmed <<damage>> units</font></b>'
- if zerkalo > 0:
- zerkalo = zerkalo - 1
- healthV = healthV - damage
- '<b><font color = green>You are repelled and the damage <<$boydesc>> We received <<damage>> points of damage</font></b>'
- end
- end
- xgt'fight','sta'
- end
- end
- if $ARGS[0] = 'uronV':
- cla
- stKo = strenV*20/100
- damage = RAND(strenV-stKo,strenV+stKo) + weapbonusV + magweapbonusV
- if knifeV > 0:
- knibonV = knifeV+1
- knifeV = 0
- damage = damage*knibonV
- knibonV = 0
- '<b><font color = red>As you fly throwing knife</font></b>'
- end
- if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0:
- if dospeh > 0:damage = damage - dospehDef & dospehEn = dospehEn - 1
- if damage < 0:damage = 0
- pcs_health = pcs_health - damage
- if stunnerV > 0:
- stunnerV = 0
- stun = RAND(3,6)
- '<b><font color = red><<$boydesc>> You paralyzed on <<stun>> moves.</font></b>'
- end
- '<b><font color = red>You harmed <<damage>> units</font></b>'
- if zerkalo > 0:
- zerkalo = zerkalo - 1
- healthV = healthV - damage
- '<b><font color = green>You are repelled and the damage <<$boydesc>> We received <<damage>> points of damage</font></b>'
- end
- xgt'fight','sta'
- elseif defence > 0 and klon <= 0 and unmaterial <= 0:
- defence = defence - damage
- '<b><font color = red>Your protection harmed <<damage>> units</font></b>'
- xgt'fight','sta'
- elseif klon > 0 and unmaterial <= 0:
- klon = klon - 1
- '<b><font color = red>It destroys your clone, Do you have more <<Klon>> Clones</font></b>'
- xgt'fight','sta'
- elseif unmaterial > 0:
- unmaterial = unmaterial - 1
- '<b><font color = green>Beat the enemy flew right through your body. YOU are not material</font></b>'
- xgt'fight','sta'
- elseif barier > 0:
- !imeniteta barrier for damage
- if barier >= damage:
- '<b><font color = green>You can easily withstand the impact of the enemy</font></b>'
- xgt'fight','sta'
- elseif barier < damage:
- pcs_health = pcs_health - damage
- if stunnerV > 0:
- stun = RAND(3,6)
- '<b><font color = red><<$boydesc>> You paralyzed on <<stun>> moves.</font></b>'
- end
- '<b><font color = red>You harmed <<damage>> units</font></b>'
- if zerkalo > 0:
- zerkalo = zerkalo - 1
- healthV = healthV - damage
- '<b><font color = green>You are repelled and the damage <<$boydesc>> We received <<damage>> points of damage</font></b>'
- end
- end
- xgt'fight','sta'
- end
- end
- --- atak ---------------------------------
|