Alright.. im having trouble with this other spell, where it turns 1/2/3/4 corpses into skeletons around the hero. I based it on howl of terror. heres what it looks like.
Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Raise Dead Actions Unit Group - Pick every unit in (Units within (200.00 x (Real((Level of Raise Dead for (Triggering unit))))) of (Position of (Triggering unit)) matching (((Triggering unit) is alive) Equal to False)) and do (Actions) Loop - Actions Unit - Create 1 Dummy3 for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 0.00 degrees Unit - Add Skeletons-Raisedead to (Last created unit) Unit - Set level of Skeletons-Raisedead for (Last created unit) to (Level of Raise Dead for (Triggering unit)) Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
The problem is you didnt order your dummy to do anything. Sure you gave it the ability and all but you didn't tell it to cast. Also create the dummy unit at the position of the picked unit not the triggering unit (doesnt REALLY matter but its better setup that way)
you have the same problem that you had before... you use "triggering unit" for the wrong unit.
Unit - Order (Last created unit) to Undead Necromancer - Raise Dead (Triggering unit)
This way your dummy will cast the spell on the triggering unit, which is the caster (your hero with the howl of terror). You want your dummy to cast raise dead on the picked unit in the loop:
Unit - Order (Last created unit) to Undead Necromancer - Raise Dead (Picked unit )
Yet another problem.. I did what you said. But now whenever i use the ability. It casts the ability as many times as there are corpses. I tried removing the ability after it was cast. But it didn't work. Some help?
make a boolen variable and at the begin of the game set it to false, when u have had 1 corpse set it to 'true' and ofcourse let it check if the variable is true, then skip the spell actrions