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

[Trigger] Frost Nova Spell Help

Status
Not open for further replies.
Level 6
Joined
Aug 26, 2007
Messages
107
Hi, I have a problem making a frost nova spell, like one from World of Warcraft. The trigger goes as follows:
  • Events:
  • Unit - A unit finishes casting an abilty.
  • Conditions:
  • Ability being cast = to (Frost Nova AOE)
  • Actions:
  • Set Frost_Nova_Unit = (Casting Unit)
  • Unit - Pause Frost_Nova_Unit
----(This part creates the "Frost" Effect, but it's kinda long so I'm skipping it)----
  • Unit Group - Pick every unit in (Units within 400.00 of (Position of Frost_Nova_Unit) matching ((Owner of (Matching unit)) Not equal to (Owner of Frost_Nova_Unit))) and do (Actions)
    • Loop - Actions
      • Unit - Pause (Picked unit)
      • Animation - Change (Picked units)'s animation speed to 0.00% of its original speed
      • Wait 5 seconds
      • Animation - Change (Picked units)'s animation speed to 100.00% of its original speed.
      • Unit - Unpause (Picked unit)
----(End of Unit group order)----
  • Wait 1.00 seconds
  • Unit - Unpause Frost_Nova_Unit
----(End of Spell)----

The problem is, I can't get the units who have been frozen to unfreeze, any help would be great.
Just so there is no confusion, when there is a ----(Whatever)---- it doesn't mean its a new trigger, it just means to type that whole part in trigger form will take a while.
 
Level 10
Joined
Jun 16, 2007
Messages
415
Oops, I should've paid attention, I thought you are just trying to freeze one unit, not caster and aoe.

Your problem is, that you are using a wait inside your loop. This will result in only the last picked unit being unfrozen. I suggest adding them to a group like FrozenOnes, starting a timer, then when the timer elapses, you pick every unit FrozenOnes and unpause them, etc. This will work, but you would need JASS to make it Multi-Unit-Instancable, otherwise it just works for one unit at a time.
 
Level 6
Joined
Aug 26, 2007
Messages
107
Oh well that's fine then. Thanks. But, what should I make the "FrozenOnes" variable. Right now I have Set (Frozen) = ???. Any ideas?
EDIT: Would it work if I just set apart the actions with a wait? Like this...
  • Loop - Actions
    • Unit - Pause Frozen
    • Animation - Change Frozen's animation speed to 0%
  • Wait 5 seconds
  • Loop - Actions
    • Unit - Unpause Frozen
    • Animation - Change Frozen's animation speed to 100
 
Level 6
Joined
Aug 26, 2007
Messages
107
Wow, the complete obvious eluded me. No seriously, I never would've thought of that. Well, with the triggered way, I can add effects, but I guess the war stomp would work, with a bit of triggering.
EDIT: Actually that's what I did. I based it off of war stomp, but was too dumb to use it's stun. lol.
EDIT2: Turns out if i used the War Stomp's stun instead of the triggered one, the guys will be frozen before the effect even appears.
 
Level 1
Joined
Dec 12, 2008
Messages
4
What you said above, the one with two loops, (assuming they are pick every unit in group loops) will work if you change Frozen to Picked Unit
 
Status
Not open for further replies.
Top