HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

i need help with triggering spells

02-12-2004, 06:13 PM#1
Infernas
I have been making a map for the last few days and now i am getting on to making spells for my heroes. I have never really made custom maps with triggers and tend to stick of normal ones. Can someone tell me how i can make a chain death coil spell because i am confused. I dont just want it to hurt, but also heal like normal death coil
02-12-2004, 11:13 PM#2
Grater
With difficulty. The fundamental problem is that it is very difficult to determine exactly when a specific projectile hits a unit, the easiest, altough slightly less than perfect method works like this:

Create a hiddencaster.
Have the hiddencaster fire a deathcoil at the next target in the chain.
Wait for DistanceToTarget/DeathcoilMoveSpeed seconds.
Move the hiddencaster to the target just hit.
Have the hiddencaster fire a deathcoil at the next target in the chain
Repeat

The problem with this method is if the target is moving it may take longer for the deathcoil to hit the target than the wait calculated, which can result it looking rather weird, with multiple coils in flight at the same time.

You seriously don't want to know what the more accurate method involves.

If you havn't used trigger spells with hiddencasters before I don't really reccomend trying it.
02-13-2004, 07:21 AM#3
Dimples
Quote:
Originally posted by Grater
You seriously don't want to know what the more accurate method involves.


Actually, if an accurate method for this exists, I for one would love to know about it, and I'm sure others too. Any chance you could post it? :)

Thanks.
02-13-2004, 08:14 AM#4
Grater
Okay, bear in mind I've never tried this method.

What you do is make the chainlightning spell deal a very precise amount of damage, say 0.04. Now the moment it's fired you add all the units that could possibly get hit to a trigger, I mean you add the "Unit takes damage" event. You compare the damage taken to 0.04 and if it's the right amount that unit almost certainitely got hit by the chainlightning. (remember heroes take reduced damage)

But ofcourse it's more complicated with a chain projectile, still doable, but complicated. Not something for newb triggerers, unless they are really up to a challenge.

And it would never really be 100% accurate because just by some fluke of splash and armor some unit could take exactly 0.04 damage and thus cause something weird to happen.
02-13-2004, 01:43 PM#5
Vexorian
Don't ever post questions in the repository again, thread moved