Lifestealing Ability? Help please!

P

Pandaren

Guest
Sorry if this is a noob question, but, how do i make a lifestealing ability? For example, an aura. Help appreciated :)
 
Oh..

Oh okay... sorry im a noob, ill go try that! Thx for the help
 
Edit: This whole stuff works if you want the aura to passively steal life (not during attack) of enemy units around caster and give it to the caster.

You need an unit variable. Let's call it DD_STEALER. And a real variable. Let's call it DD_LIFE. And then, here are the triggers you need (warning, it will work only for a single unit/map. I can edit it to work for a single unit/player).

TRIGGER 1
Event - A Hero Learns an Ability
Conditions - (Learnt Ability) equal to YOUR_AURA
Actions - set DD_STEALER = (Triggering Unit)
- turn on trigger 2

TRIGGER 2
Event - Every x seconds of the game //change x with the stealing frequency
Actions - Pick up every unit within y range of DD_STEALER matching conditions ((Matching Unit) is an enemy of DD_STEALER) AND ((Matching Unit) is dead) equal to false) AND ((Matching Unit) is Mechanical equal to false) and do actions //change y with the area of the aura
- set DD_LIFE = Min((Life of (Picked Unit)), (Life of (Picked Unit))-damage) //change damage with the amount of life stealing
- Set (Life of DD_STEALER) to (Life of DD_STEALER)+DD_LIFE
- Order DD_STEALER to Damage (Picked Unit) for "damage" using attack type Spells and damage type Fire. //change damage amount so that it matches the one above

That's kinda it!

~Daelin
 
Thanks everyone. Now to find a trigger with minus regeneration :D
 
Umm... if you mean to drain life from the units, this trigger takes care. If you want an aura which reduces regeneration rate from enemy units, polarize Unholy Aura. Make it target enemy units (maximum choices are to be enemy,air,ground) and set renegeration rate bonus to a negative value you want.

~Daelin
 
No what i mean is, for a hero to have a constant negative health regeneration, and i want it to be passive, though i dont know how. Help appreciated, sorry about the noob questions.
 
sorry for double posting, but nevermind i think i found what i needed.
 
Noob Alert! Noob needs help.

Ok im really new to world editor, sorry if this is rly noobish but how can I make Unholy Aura give negative regeneration to the user? I've set it to only effect on self, but it wont lemme make it give negative regeneration! Help would be much appreciate.
 
Don't start another thread! Post in the previous one!

Hold shift and double click on the regeneration rate bonus field. Then you can give negative regeneration rate.

~Daelin
 
OR

File>Preferences>General Tab>Allow Negative Values, and that's it. You can either write a minus before your number or lower it beneath 0 with the arrows.
 
Ok thanks so much Daelin. Your awesome. Sorry about the thread, and it'd be cool if someone could merge this thread with my other one... If you can do that on these forums. Thanks again :D
 
Yepp, Or go to File>Preferences>General tab>And check Allow negative values, then you can write the negative value too.
 
Cornface said:
Yepp, Or go to File>Preferences>General tab>And check Allow negative values, then you can write the negative value too.

Doesn't work for all fields, I'm 100% certain about it. If I remember correctly, the sight bonus item ability for example doesn't work this way. Try it! :)

~Daelin
 
It works! :D Now another question... Sorry about asking all these questions n taking up your time..... But how can I make skills use life instead of mana? I try to make triggers for it, but it doesn't work ):. Anyways thanks again and thanks in advance :D
 
This is much more complicated. Everytime the unit "begins casting an ability", store its current mana into a variable, wait 0.27 seconds (pretty risky), and then the difference between the mana stored and current mana is the mana cost of the spell. Restore that much mana, and decrease that much life. However, if unit has for example 200 life and 20 mana, and the spell costs 50, you can't cast it because the game checks the mana. Sorry, there's no way to avoid this problem, unless you trigger the mana loss too.

~Daelin
 
Oh damn. I think ill just give him like an infinite ammount of mana then lol. Anyways at least i don't need JASS or something like that... Man takes a couple days to make a single hero :O
 
Sorry for double posting, i just reread that.... aaaand i think im just gonna cut out that whole part from my hero... And just go with mana :D Thanks, everyone
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top