HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

can some one help?

02-12-2004, 06:58 PM#1
Infernas
im realatively new to triggering spells and i want to know i any of u know how i can make chain death coil. I want it to do the same as normal but bounce.
02-12-2004, 07:02 PM#2
angel of light
just base it off of chain lightning, and switch the model
02-12-2004, 08:48 PM#3
Infernas
if i do that will it still heal undead and hurt other races though?

can i not just use death coil but add a trigger to make it bounce to other units???
02-12-2004, 09:51 PM#4
Alakafizz
Quote:
Originally posted by Infernas
if i do that will it still heal undead and hurt other races though?

No.

can i not just use death coil but add a trigger to make it bounce to other units???


Yes, in a way.

What you wanna do is something like this:
1) Make a dummy-spell with no damage or graphics, and give it to your hero.
2) Make a trigger that detects this dummy-spell cast - actions should be:
Code:
  a) create an invis death-coil-unit with death-coil at casting unit

    Loop 1 to n times
  b) order invis death-coil-unit to Undead death knight - Death Coil targetted unit
  c) wait 0.2
  d) move invis death-coil-unit to position of targetted unit
  e) Custom Script: set bj_wantDestroyGroup = true
  f) pick units in range (500) of targetted unit matching (is alive) and matching unit is not in (HasTakenHits) and (owner of matching unit is enemy of owner of casting unit) and do:
      loop - actions
          add unit to PickedUnits
  g) set UnitVar = random 1 unit from PickedUnits
(UnitVar)
  h) Unit-Group - add UnitVar to HasTakenHits
    endloop

i) remove all units from HasTakenHits
j) remove all units from PickedUnits

This is just for the death-coil-effect. If you want the chain-lightning effect added, then you need to make a dummy-unit more, this one with a dummy-chain spell (no dmg, hits only 1 unit), and create this unit in the beginning as well, and order it to chain lightning the UnitVar (the target) everytime the invis death-coil-unit is ordered to death coil UnitVar, and move it to positions of UnitVar when the other unit does.

Capiche? =)