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

Will this leak?

Status
Not open for further replies.
Level 9
Joined
Apr 28, 2009
Messages
538
  • Test
    • Events
      • Time - Every 0.60 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Antonidas) and do (Unit - Order (Picked unit) to Human Archmage - Blizzard (Position of (Random unit from (Units in (Playable map area)))))
 
You should at least set a point variable before that action.

(I'm sure the better trigger folks will give you more/better answers.)
 
Well, I think that will not work the way you want to since Blizzard is a channeling spell, and if the casters are given a new order every 0.60 seconds, then they won't have time to use the spell at all. I'm not sure what you're trying to do, but if you want them to actually cast the spell you should use a bigger time interval.

Also, I'm not sure, but I think that using random units as targeting points might not work, though I don't know for sure.
 
I would make a condition that the picked unit isn't the spell caster.
  • No more leaks
    • Events
      • Time - Every 0.6 seconds of game time.
    • Conditions
    • Actions
      • Set Group = Units of type Antonidas
      • Set Point = Position of (Random unit from (Units in (Playable map area))))
      • Unit Group - Pick every unit in Group and do (Unit - Order (Picked unit) to Human Archmage - Blizzard Point
      • Custom script: call DestroyGroup(udg_Group)
      • Custom script: call RemoveLocation(udg_Point)
 
  • Set Group[0] = (Units of type Antonidas)
  • Set Group[1] = (Units in (Playable map area))
  • Set Point = (Position of (Random unit from Group[1]))
  • Unit Group - Pick every unit in Group[0] and do (Unit - Order (Picked unit) to Human Archmage - Blizzard Point
  • Custom script: call DestroyGroup(udg_Group[0])
  • Custom script: call DestroyGroup(udg_Group[1])
  • Custom script: call RemoveLocation(udg_Point)
^_^
 
Lol? Squiggy? Your Group[1] serves no purpose in that trigger, silly.
  • Lol Squiggy (this way)
    • Events
      • Time - Every 0.60 seconds of game time.
    • Conditions
    • Actions
      • Set Group = Units of type Antonidas
      • Set Group2 = (Units in (Playable map area))
      • Set Point = Position of (Random 1 unit from (Group2))
      • Unit Group - Pick every unit in Group and do (Unit - Order (Picked unit) to Human Archmage - Blizzard Point
      • Custom script: call DestroyGroup(udg_Group)
      • Custom script: call DestroyGroup(udg_Group2)
      • Custom script: call RemoveLocation(udg_Point)
 
  • Test
    • Events
      • Time - Every 0.60 seconds of game time
    • Conditions
    • Actions
      • Custom script - set bj_wantDestroyGroup = true
      • Set TempLoc = Position of (Random unit from (Units in (Playable map area)))
      • Unit Group - Pick every unit in (Units of type Antonidas) and do (Unit - Order (Picked unit) to Human Archmage - Blizzard (TempLoc)
      • Custom script - call RemoveLocation(udg_TempLoc)
      • Custom script - set bj_wantDestroyGroup = false
 
  • Test
    • Events
      • Time - Every 0.60 seconds of game time
    • Conditions
    • Actions
      • Custom script - set bj_wantDestroyGroup = true
      • Set TempLoc = Position of (Random unit from (Units in (Playable map area)))
      • Unit Group - Pick every unit in (Units of type Antonidas) and do (Unit - Order (Picked unit) to Human Archmage - Blizzard (TempLoc)
      • Custom script - call RemoveLocation(udg_TempLoc)
      • Custom script - set bj_wantDestroyGroup = false

bj_wantDestroyGroup is automatically set to false after doing a (GUI/BJ) group iteration.

You leak units in playable map area
 
Status
Not open for further replies.
Back
Top