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

[JASS] How do you create effects around a unit with a loop?

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
How do you create effects around a unit with a loop?
I can't seem to get it the only way am able to do it it by making one at a time but I seen some spells that use loops to make it but I don't see how they do it.
P.S. when I mean effects I meant like dummy units
 
You mean in circle?
If you do you just need a formula where to crate unit/effect.
There is a spell called "Taste of Death" that contains pretty much what are you looking for. PM me if you get any problems with it.

Edit:
  • Taste of Death
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Taste of Death
    • Actions
      • Set TempLoc1 = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc1 facing Default building facing degrees
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Taste of Death(dummy) to (Last created unit)
          • Set TempLoc1_Cast = (TempLoc1 offset by 50.00 towards (10.00 x (Real((Integer A)))) degrees)
          • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm TempLoc1_Cast
          • Custom script: call RemoveLocation (udg_TempLoc1_Cast)
      • Custom script: call RemoveLocation (udg_TempLoc1)
You change the radius by changing offset (now its 50<-really near the caster) maging it 600 or so is more in the distance.
 
Status
Not open for further replies.
Top