• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Spell effect dont stop. PLs Help

Status
Not open for further replies.
Level 5
Joined
May 27, 2007
Messages
144
Hi i have just made a spell. It is based on thunderclap. The effect of this spell is that the trigger change animation of units in range of this spell to 0% and pause them also at their position there is a special effect (FreezingBreathTarget). The problem is that after 5 seconds those effects dont stop. here is a
  • Freezing Howl
  • Events
    • Unit - A unit is starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Freezing Howl
  • Actions
    • Unit Group - Pick every unit in (Units within (210.00+(50.00x(Real((Level of Freezing Howl for (Casting unit)) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is Magic Immune) Equal to False)
      • Loop - Actions
        • Unit Group - Add (Picked unit) to FreezingGroup
        • For each (Integer A) from 1 to (Number of units in FreezingGroup), do (Actions)
          • Loop - Actions
            • Animation - Change (Random unit from FreezingGroup)´s animation speed to 0% of its original speed
            • Unit - Pause (Random unit from FreezingGroup)
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to (Number of units in FreezingGroup), do (Actions)
        • Loop - Actions
          • Animation - Change (Random unit from FreezingGroup)´s animation speed to 100% of its original speed
          • Unit - Unpause (Random unit from FreezingGroup)
After trigger pause(Random unit from FreezingGroup) the trigger dont work.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
well...

You're pausing them an awful lot of times there. Also, picking Random Units won't get you a different unit every time.

Try something like this;

  • Freezing Howl
    • Events
      • Unit - A unit starts the effect of an Ability
    • Conditions
      • (Ability being Cast) Equal to Freezing Howl
    • Actions
      • Set FreezingGroup = (Units within (210.00+50.00x(Real((Level of Freezing Howl for (Triggering Unit)) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering Unit))) Equal to True) and (((Matching unit) is Magic Immune) Equal to False)
      • Unit Group - Pick every unit in FreezingGroup and do actions
        • Loop - Actions
          • Animation - Change (Picked Unit)'s Animation speed to 0% of its original speed
          • Unit - Pause (Picked Unit)
      • Wait 5.00 seconds
      • Unit Group - Pick every unit in Freezing Group and do actions
        • Loop - Actions
          • Animation - Change (Picked Unit)'s Animation speed to 100% of its original speed
          • Unit - Unpause (Picked Unit)
      • Custom script: call DestroyGroup(udg_FreezingGroup)
 
Status
Not open for further replies.
Top