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

stops after first part

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2009
Messages
65
[UNSOLVED]Stops After First Part

  • Negate Aura Loop1
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Negate and do (Actions)
        • Loop - Actions
          • Set NegateTargets = (Units within 500.00 of (Position of (Picked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True))
          • Unit Group - Pick every unit in NegateTargets and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is Magic Immune) Not equal to True
                • Then - Actions
                  • Animation - Change (Picked unit)'s vertex coloring to (22.00%, 22.00%, 22.00%) with 32.00% transparency
                  • Wait 1.00 game-time seconds
                  • Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 10.00)%
                  • Animation - Change (Picked unit)'s vertex coloring to (22.00%, 66.00%, 22.00%) with 44.00% transparency
                  • Wait 1.00 game-time seconds
                  • Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) - 25.00)
                  • Animation - Change (Picked unit)'s vertex coloring to (99.00%, 44.00%, 44.00%) with 77.00% transparency
                  • Wait 1.00 game-time seconds
                  • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
                  • Wait 1.00 game-time seconds
                  • Unit Group - Remove (Picked unit) from NegateTargets
                • Else - Actions
It stops after the first coloring.....and doesnt do anything else...
 
Last edited:
Level 4
Joined
Jul 1, 2009
Messages
65
where and what do u mean.....the two groups are different variables one is group Negate and other is NegateTargets
 
Level 4
Joined
Jul 1, 2009
Messages
65
thnx for informing me... also i did some tests and if i put

  • Animation - Change (Picked unit)'s vertex coloring to (22.00%, 22.00%, 22.00%) with 32.00% transparency
  • Animation - Change (Picked unit)'s vertex coloring to (66.00%, 44.00%, 44.00%) with 32.00% transparency
he turns red also same if i put other things.....basically it works if i take out wait......but then the code happens so fast u dun see color change he just turns red....... Can you have a Wait command the way i did?
 
See attachment. 'Nuff said.
 

Attachments

  • sigh.PNG
    sigh.PNG
    11.8 KB · Views: 70
Level 4
Joined
Jul 1, 2009
Messages
65
thanks so much lol...... never read that........... :p

+rep


........so is there another way to do it?

EDIT:

is this good or should i do it another way

  • Negate Aura Loop1
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Negate and do (Actions)
        • Loop - Actions
          • Set NegateTargets = (Units within 500.00 of (Position of (Picked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True))
      • Wait 1.00 game-time seconds
      • Unit Group - Pick every unit in NegateTargets and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is Magic Immune) Not equal to True
            • Then - Actions
              • Animation - Change (Picked unit)'s vertex coloring to (44.00%, 100.00%, 44.00%) with 0.00% transparency
            • Else - Actions
      • Wait 1.00 game-time seconds
      • Unit Group - Pick every unit in NegateTargets and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is Magic Immune) Not equal to True
            • Then - Actions
              • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
            • Else - Actions
      • Wait 1.00 game-time seconds
      • Unit Group - Pick every unit in NegateTargets and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is Magic Immune) Not equal to True
            • Then - Actions
              • Animation - Change (Picked unit)'s vertex coloring to (22.00%, 22.00%, 22.00%) with 32.00% transparency
              • Environment - Create a 1.00 second Temporary crater deformation at (Position of (Picked unit)) with radius 150.00 and depth 64.00
              • Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) - 25.00)
            • Else - Actions
      • Custom script: call DestroyGroup( udg_NegateTargets )

EDIT:EDIT: LOL i was typing during your post.....
 
Status
Not open for further replies.
Top