Warcraft III resources & community, 2003–2006 · archived

Life Drain Help

20 posts
#1

Life Drain Help

No matter when i do i can't get life drain to be able to target allied units. Im using it so i can get lightning fx at a height. Is theer any possible way to get it to target allies?
#2
i'm still new but i think you could just open up abilitydata.slk file and add friend to the targ1 field for the particular source spell that your guy is using. Then add/overwrite the file to your map. That should make your spell able to target friend units as well as enemys.

I don't have Frozen thrown so i have to do everything the hard way lol...
#3
I already Tried allies. I tried allies, self, friendly, ground, just about everything, together and by themselves. Nothing works :cry:
#4
Maybe you can base it off Mana Drain and make the "send mana" area negative
#5
I also had this problem. To solve it set the life drained to 0.01 and draining time to 999999. And obviously set it to target allies. oh, and base the spell of "Life Drain" and not off "Siphon Mana".
#6
I already did that, set drian interval to 99999, set hp drained to .01, and set duration to 3600(max). I tried manually casting it but it says "Unable to target your own units", or "Must target an enemy unit". When did you use the life drain thing, because the 1.17 patch might be causing this.
#7
Scroll down the gameplay constants, at the end there is a field that check - Drain gives bonus life --> set it to true.

Note that in this way you can't drain a friendly target's life, but siphon life to it instead. If you want to drain friendlies, try to trigger.
#8
Ok, is there a special order id for this, or do they have to have drained life first?
#9
Well... I personally never tried to drain from an unit to another and I'm not really sure how you could trigger this... But just giving life to one friend is easy. Check my observations below. It should work!
#10
What observations? What i need it for is a channeled mind control spell. Is there any other unit-targetable
channel spell?
#11
The best method is to base the spell off Channel, and change the fields as necessary.
#12
I don't like Channel for some reason. I still suggest Life Drain, just change the draining to 0.01 and time between drainings to 9999999 and that is all. Why doesn't it work? I suppose you still want to have it target enemy units. Ok, if you just would've left the timer to 0 then it wouldn't have worked and it would've told you that no target is valid.

~Daelin
#13
I told you, i already tried setting the life drained to 0.01, and drain itnerval to max, but it still says "Must target enemy unit". I don't like channel either because it pauses the caster, but i decided to use it any way and added this loop to the trigger.

    loop
        exitwhen GetTriggerEvalCount(t)>0
        exitwhen ( IsUnitDeadBJ(target) == true )
        exitwhen ( DistanceBetweenPoints(GetUnitLoc(caster), GetUnitLoc(target)) > I2R(range) )
        call TriggerSleepAction(0.10)
    endloop


Then simply changed ownership and unpaused caster at the end.
#14
Ok... I am still surprised that Life Drain doesn't work... Hmm, please try my Divine Intervention. You will see there that I used some Drain which is used by enemy Neutral Hostile to target the Paladin. Here is the link to Divine Intervention: http://www.wc3sear.ch/index.php?p=Spells&ID=733&sid=102cfb37a526a012f92cd7cd70abaa5f .And the Drain Spell, is called Caster Light . I guarantee it will work since as you can see, it worked for my spell. Just change the HP drained to 0.01, AoE, Range and Duration to whatever you want, and Drain Interval to 999999. That is all!
#15
The only reason yours works is because its an enemy targetting him. I need it to be able to target allies. Its ok though, i did it through trigegrs by pausing the caster and doing a loop which exited either when the timer ahd expired, or when the mind controlled unit dies, or when he caster dies,or when the unit goes out of range.