HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Vicious Hunger" spell

09-11-2004, 01:51 PM#1
htek
dudes

I'm looking for a way to make a spell completely indiscriminatory as to it's target: i want a spell to target the nearest unit, friend or enemy, except for heroes and buildings, and kill it, healing the caster only a little bit.

now i can make it heal and kill with Death Pact, but... how would i make it completely nondiscriminatory? how can i make it target the nearest unit only?

PS - only slk modding / data modding usable

cheers,

'tek
09-11-2004, 06:20 PM#2
Pyrus
You and yous slk modding, why dont you get TFT, its so much easier.
09-12-2004, 06:19 AM#3
Panto
Eh, I can't imagine doing this without a trigger. A very simple trigger, mind you.

There's nothing besides Dark Ritual and Death Pact that kill for health, and both of those require that you target a unit. Furthermore, both have hardcoded legal targets, which can't be altered via .slk or object editor even though you might be tempted to think that they could. You could use Siphon Mana or Life Drain, but again, they target a unit.

What you need is a dummy spell that does nothing and targets nothing, and then use a trigger to select the unit, do the math, and add the life.