• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Voodoo Curse (mass hex)

Status
Not open for further replies.
Level 8
Joined
Feb 12, 2005
Messages
200
Well, I'm trying to create a spell that will do this :
A strange, yet effective spell. Whenever the Magician casts this spell near enemy units, they will become hexed and unable to attack for a period of time.
I tryed to create this spell, but it didn't worked, I don't get it.
Here are the triggers :
Voodoo Curse
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Voodoo Curse
Actions
Unit - Create 1 Caster02 for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
Unit - Add Hex (Ultimate) to (Last created unit)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Casting unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Picked unit)

If I use this, only one unit is hexed.
Can someone give me the answer?
Thanks.
 
Level 2
Joined
Mar 31, 2005
Messages
12
This is similar to the problem i was having on mine... can i just ask? what is the point of giving the dummy a level of the spell if you just cast a generic hex? so if u make a custom hex that lasts 5 seconds and the real one only lasts 3 seconds, does world editor make that destiction between the two?
 
Level 5
Joined
Aug 13, 2005
Messages
119
U shuld remove the leaks in these two!

-Unit - Create 1 Caster02 for (Owner of (Casting unit)) at :arrow: (Position of (Casting unit)) :!: facing (Facing of (Casting unit)) degrees

-Unit Group - Pick every unit in (Units within 500.00 of :arrow: (Position of (Casting unit)) :!: matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)


Set them to variables and when ur done wid the vars
use. RIGHT AFTER ur done.. not at the clean ups..

Custom Script: <space>call RemoveLocation(udg_Var)
 
Status
Not open for further replies.
Top