• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Multiple Special effect

Status
Not open for further replies.
Level 4
Joined
Aug 22, 2008
Messages
100
How do I remove the this special effect?
  • Treant Ressurection
    • Events
      • Time - Every 90.00 seconds of game time
    • Conditions
      • (Boss1 is alive) Equal to True
    • Actions
      • Unit - Pause Boss1
      • Unit - Make Boss1 Invulnerable
      • Unit Group - Pick every unit in (Units within 2000.00 of (Position of Boss1) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
 
If a new special effect is created in the wait time then that special effect will be removed or am I wrong?
(There should be a wait there too forgot to add it srry)
 
Create a variable of type Special Effect, make it an array. Create another, integer. It doesn't need to be an array.

  • Set Temp_Integer_1 = 0
  • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Loop - Actions
      • Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Set Temp_Effect_Array[Temp_Integer_1] = (Last created special effect)
      • Set Temp_Integer_1 = (Temp_Integer_1 + 1)
And then destroy them:

  • For each (Integer A) from 0 to Temp_Integer_1, do (Actions)
    • Loop - Actions
      • Special Effect - Destroy Temp_Effect_Array[(Integer A)]
 
Status
Not open for further replies.
Back
Top