Every X attacks do 50 damage...

Smilis

TH.net Regular
Reaction score
7
Hello everyone! I was wondering if someone has a code that makes, if you have the skill Super Smash level 1, the hero will attack a unit 5times and make 50damage, if he have level 2, he only needs to attack 4times and make 60damage, level 3 = attack 3times damage = 70 and level 4 attack = 2 Damage= 80...

Or if you cant do that, at least have so the hero have to attack 3times and then for every level get +10 damage...


(It´s like the abillity of the "Overload"-abillity from Dota.)
Overload

Each successful attack builds up a static charge, eventually releasing in the form of an electrical burst. The burst deals damage and does a minor slow effect to the attacked foe and nearby area.

Level 1 - 8 Attacks. 30 Damage
Level 2 - 7 Attacks. 45 Damage
Level 3 - 6 Attacks. 60 Damage
Level 4 - 5 Attacks. 75 Damage

Passive

Thanks if you can help...
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
make a varible that stack +1 every time you deal dmg and when it reach x numbers of attack, make unit x to damage unit y x dmg
 

Accname

2D-Graphics enthusiast
Reaction score
1,463
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Level of 'YourSkill' for (Attacking unit)) Not equal to 0
    Actions
        Unit - Set the custom value of (Attacking unit) to ((Custom value of (Attacking unit)) + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Custom value of (Attacking unit)) Greater than or equal to (9 - (Level of 'YourSkill' for (Attacking unit)))
            Then - Actions
                Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (15.00 + (15.00 x (Real((Level of 'YourSkill' for (Attacking unit)))))) damage of attack type Chaos and damage type Unknown
                Unit - Set the custom value of (Attacking unit) to 0
            Else - Actions

note that this may be abused by spamming attack order to a target without waiting unitl the unit finish attacking!
 

ThePlague

New Member
Reaction score
14
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Level of 'YourSkill' for (Attacking unit)) Not equal to 0
    Actions
        Unit - Set the custom value of (Attacking unit) to ((Custom value of (Attacking unit)) + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Custom value of (Attacking unit)) Greater than or equal to (9 - (Level of 'YourSkill' for (Attacking unit)))
            Then - Actions
                Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (15.00 + (15.00 x (Real((Level of 'YourSkill' for (Attacking unit)))))) damage of attack type Chaos and damage type Unknown
                Unit - Set the custom value of (Attacking unit) to 0
            Else - Actions

note that this may be abused by spamming attack order to a target without waiting unitl the unit finish attacking!

easiest way to avoid this is to make your ability an orb and check if the unit has the buff or not
 

Smilis

TH.net Regular
Reaction score
7
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
        (Level of 'YourSkill' for (Attacking unit)) Not equal to 0
    Actions
        Unit - Set the custom value of (Attacking unit) to ((Custom value of (Attacking unit)) + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Custom value of (Attacking unit)) Greater than or equal to (9 - (Level of 'YourSkill' for (Attacking unit)))
            Then - Actions
                Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (15.00 + (15.00 x (Real((Level of 'YourSkill' for (Attacking unit)))))) damage of attack type Chaos and damage type Unknown
                Unit - Set the custom value of (Attacking unit) to 0
            Else - Actions

note that this may be abused by spamming attack order to a target without waiting unitl the unit finish attacking!

Hmm, I didin't get it to work...
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
you should set custom value to 0 when the unit upgrades the level of ability too
 

Igor_Z

You can change this now in User CP.
Reaction score
61
There is no way to make the spell perfectly in GUI. It's always malfunctioning... Try pressing Attack-Stop-Attack-stop or try to move the hero before he attacks... I have tryed that with ursa's second spell on dota and the spell has to fade off when the hero attacks 5 times but when you press attack, stop etc.. it is fading off when the hero attacks once, twice etc.. I don't think it will work properly. I don't think this that i say is useful.. But GOOD LUCK on your spell
 

vaziocs

New Member
Reaction score
5
Hello everyone! I was wondering if someone has a code that makes, if you have the skill Super Smash level 1, the hero will attack a unit 5times and make 50damage, if he have level 2, he only needs to attack 4times and make 60damage, level 3 = attack 3times damage = 70 and level 4 attack = 2 Damage= 80...

Or if you cant do that, at least have so the hero have to attack 3times and then for every level get +10 damage...


(It´s like the abillity of the "Overload"-abillity from Dota.)
Overload

Each successful attack builds up a static charge, eventually releasing in the form of an electrical burst. The burst deals damage and does a minor slow effect to the attacked foe and nearby area.

Level 1 - 8 Attacks. 30 Damage
Level 2 - 7 Attacks. 45 Damage
Level 3 - 6 Attacks. 60 Damage
Level 4 - 5 Attacks. 75 Damage

Passive

Thanks if you can help...

haha those guys with triggers that never work when u can do this by just editing some objects.. pretty funny.
Just give the critical strike ability and edit the values
would be :
level 1 data 12% chance 30 damage
level 2 data - 14% chance 45 damage
and so on.
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
There is no way to make the spell perfectly in GUI. It's always malfunctioning... Try pressing Attack-Stop-Attack-stop or try to move the hero before he attacks... I have tryed that with ursa's second spell on dota and the spell has to fade off when the hero attacks 5 times but when you press attack, stop etc.. it is fading off when the hero attacks once, twice etc.. I don't think it will work properly. I don't think this that i say is useful.. But GOOD LUCK on your spell

wanna bet? pretty sure i could do this skill
 

Flare

Stops copies me!
Reaction score
662
It's perfectly do-able in GUI, but you need a half-decent damage detection system (this is one I made) for it that caters for differentiating between physical/magical damage (which means you can't use -ANY- orb effects other than the one used for detection) otherwise you have the obvious problem of spell damage contributing towards the counter
 

Igor_Z

You can change this now in User CP.
Reaction score
61
let me see triggers polo2005 but in GUI please... And vaziocs how can u make the spell from critical when the critical is multipling the base damage not dealing damage that u want and it shows floating text with red numbers...
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
let me see triggers polo2005 but in GUI please... And vaziocs how can u make the spell from critical when the critical is multipling the base damage not dealing damage that u want and it shows floating text with red numbers...

woot? jsut use critical strike?
but working on overload ability right now
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Ok polo im waiting because i need that spell too :p. If u make it to work perfectly you will get credit in my awsome map... Hope you'd make it
 

XeNiM666

I lurk for pizza
Reaction score
138
Code:
A unit Is attacked

Level of Ability for Attacking unit Greater Than 0

If / Then / Else
If
Interval Equal to 5
Then
Unit - Damage Attacked unit for 50 damage
Set Interval = 0
Else
Set Interval = Interval + 1

Sorry, i dont have WE on
 

MeTr01DPr1M3

New Member
Reaction score
5
Well hello there. Just to say this (I know you're going to hate me but...), I'd like to make a small adjustment to what all of ya have said so far. First of all guys, the unit recieves magical damage. Why is that? Cause when "Overload
" (for example) reaches it's max attacks, then it creates a Dummy Unit at the position of the Attacked unit, and just orders the Dummy Unit to cast a modified Thunder Clap. Seriously, check it out. I know that I am not capable at this point to make a trigger like this, but I just wanted to add this little detail. Sorry if I disturbed any one of you in any way. Just thought it would be easier for ya all to know how it actually works. :D

C ya around mates. :cool:
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Nope man you are wrong it's not a dummy with the spell because it thunder claps instantly when it hits.. So it can't be a dummy it is a special effect created at the location. I thought that it is a dummy but the dummy needs time to cast thunder clap. So it must be an effect.. But still i can't figure out how to make it so it won't malfunction... Thanks to everyone for this thread. Everyone that has helped will get credit in my map..
 

Igor_Z

You can change this now in User CP.
Reaction score
61
OK but i still think its a special effect that is spawning when the unit attacks with the ability. Thanks for the useful info Flare... I didn't know that
 

Smilis

TH.net Regular
Reaction score
7
Well it's work now, I had turned off the trigger earlier, and forgot to turn it on.. Thanks all :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top