• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] GUI Trigger Wait problem

Status
Not open for further replies.
Level 15
Joined
Oct 18, 2008
Messages
1,588
Hey there HW community! Back to work again ;)
I'm making some trigered spells as practice, which are dependent on hero's stats, but I got some really bad problem at a wait command...
  • Freeze world
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Freeze World
    • Actions
      • Set FWCPos = (Position of (Casting unit))
      • For each (Integer A) from 1 to 180, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Frozen for (Owner of (Casting unit)) at (FWCPos offset by (360.00 - ((Real((Integer A))) / 0.50)) towards ((Real((Integer A))) / 0.10) degrees) facing Default building facing degrees
          • Set FWPos = (Position of (Last created unit))
          • Set FWpause = (Units within 50.00 of FWPos)
          • Unit Group - Pick every unit in FWpause and do (Actions)
            • Loop - Actions
              • Unit - Pause (Picked unit)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True
                • Then - Actions
                  • Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 10.00) damage of attack type Spells and damage type Cold
                • Else - Actions
          • Wait 0.01 seconds
If I put there the wait command (or at the first part of the loop) it only summons 1 dummy and no more :p
Hope some1 can help solving this problem. :eek:
PS:It leaks like hell I know but i'll fix that after it's done

EDIT:NVM Solved with an another trigger and an integer :D
 
Status
Not open for further replies.
Top