HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Life Drain problems

01-04-2005, 02:33 AM#1
Kishe
While trying to make a spell, I hit a wall. I need to have some dummy casters cast life drain on my own units, however, no matter how I alter the Targets Allowed in the Object Editor, I can't get them to cast it. Also, I was wondering if it would be possible to have a unit with no model to cast life drain on another unit with no model. Does anyone know enough about life drain to be able to answer these problems? :(
01-04-2005, 04:06 AM#2
Naakaloh
I'm not sure, but it might be necessary for the unit casting Life Drain to have fewer than maximum hit points.
01-04-2005, 12:40 PM#3
Kishe
The thing is, when I try to cast it myself, it says that i can't target that unit. It doesn't say that I'm at max health or anything like that. Also, I got kind of frustrated with it so I changed the Targets Allowed and checked every single box in it. Then something completely odd happened. I couldn't select a unit to cast it on. I would click on a unit, but it would still say Select a Unit. I'll keep playing around with it and see if I figure out anything.

Edit: Also, does anyone know if flying height uses the same increments as ground distance in WC3? I was wondering because I used an equation to find a number and changed the flying height of a unit to that number, but it seems that it is flying higher than it should.
01-04-2005, 05:25 PM#4
thedevil
Hmm i know abit about life drain so i write down something i knew hope it help:
-The target allow default set may not allow player to cast to his ally or player unit so manipulate it as u want
-When u use life drain in enemy it will drain enemy hp but when u use it on ally or ur unit it will transfer ur hp to em(there we have life drain/s and life drain/s data on life drain ability)
-If u full hp then this spell cant work and if ur unit full life then the game will show ''aldready full health''
-Ur problem maybe cause by u dont set life transfer data or unit forgot edit target allow so it do not allow to target ur unit and another thing maybe ur unit max life so dummy unit can cast life drain
01-04-2005, 05:36 PM#5
aaero
I've had different experiences from TheDevil with life drain. Here is what I encountered.

Pre 1.17, Life Drain could target allies just fine, and it would drain HP from them. All you had to do was adjust targets allowed.

After 1.17, it seems that something was changed and Life Drain can no longer target allies no matter what the targets allowed were set to. I think it's been hardcoded into the wc3 engine, so you won't be able to do anything working with the Object Editor.

Fortunately, I have a solution for you! Just make the dummy casters Neutral instead of belonging to the owning player. Since they are invis anyway it won't matter. Just make sure you order them to start casting the spell before you hide them (unless you want to hide the graphics). I'm pretty sure you can alter the Drain Life spell to continue draining even if they have full hp, but just to be sure, I made my dummy casters have a huge amount of hp and set their hp to 1 before they start draining :).
01-05-2005, 12:40 PM#6
Kishe
The only reason I wanted to use life drain is to get the lightning effect. I basically want to make a pyramid around a unit, using the life drain lightning effects as the edges. So I created about 10 units and told them to life drain one of the other of the 10 units. I really would like to be able to keep them on the same team, so I don't have to put them on 10 different teams. Any suggestions?
01-06-2005, 12:01 PM#7
311
just do create lighting effect then. from point a to b, then you done need any custom ability, dotn even need the units
01-06-2005, 12:38 PM#8
Kishe
Except the last I checked, you cannot make lightning effects to go to a point in the air. Also, the lightning effects made with triggers look bad. I have another idea though; can you target or let a allied unit be targeted by Siphon Mana?
01-06-2005, 01:12 PM#9
Voi
Use chain lightning with changed effect and no damage. That will always work!

Edit: Didn't think about duration of it...