• 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.

Mass Spell with Selection Circle Issue

Status
Not open for further replies.
Level 3
Joined
Mar 26, 2007
Messages
51
I'm making a spell called Mass Polymorph. I based it on Cluster Rockets. But i cant seem to make it work. I used a dummy caster but it only polymorphs one target and then disappears. Can anyone help me out? Maybe with a trigger? Thanks.
 
Level 7
Joined
Jul 20, 2008
Messages
377
That's because you need to form an unit group of targets in RANGE of a point. Make the range match the spell's area of effect radius. Then make a loop for every unit in that group and create a dummy caster in that loop and have it use polymorph on the picked unit.
 
Level 7
Joined
Jul 20, 2008
Messages
377
  • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mass Polymorph
    • Actions
      • Unit Group - Pick every unit in (Units within 500.00 of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing (Position of (Picked unit))
          • Unit - Order (Last created unit) to polymorph (Picked unit)
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Don't forget to clean up leaks and the 500 in the unit group thing is just an example.
 
Status
Not open for further replies.
Top