• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] How do you make this SIMPLE trigger to work?

Status
Not open for further replies.
Level 17
Joined
Aug 20, 2007
Messages
1,122
Wow, this trigger... Nothing wrong with it right? WRONG! Somethings wrong!!!:cry:

  • Impaling Roots
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to (==) Impaling Roots
    • Actions
      • Set impalingrootscastingunit = (Casting unit)
      • Set impalingrootstarget = (Target point of ability being cast)
      • Unit - Pause impalingrootscastingunit
      • Animation - Play impalingrootscastingunit's Morph animation
      • Wait 2.56 seconds
      • Set impalingrootsunitgroup = (Units within 200.00 of impalingrootstarget matching (((Matching unit) belongs to an enemy of (Owner of impalingrootscastingunit)) Equal to (==) True))
      • Unit Group - Pick every unit in impalingrootsunitgroup and do (Actions)
        • Loop - Actions
          • Unit - Cause impalingrootscastingunit to damage (Picked unit), dealing (100.00 x (Real((Level of Impaling Roots for impalingrootscastingunit)))) damage of attack type Spells and damage type Normal
        • Do Multiple ActionsFor each (Integer A) from 1 to 18, do (Actions)
          • Loop - Actions
            • Do Multiple ActionsFor each (Integer B) from 1 to 10, do (Actions)
              • Loop - Actions
                • Set impalingrootspoint = (impalingrootstarget offset by (20.00 x (Real((Integer B)))) towards (20.00 x (Real((Integer A)))) degrees)
                • Special Effect - Create a special effect at impalingrootspoint using Abilities\Spells\Undead\Impale\ImpaleHitTarget.mdl
                • Special Effect - Destroy (Last created special effect)
      • Unit - Unpause impalingrootscastingunit
      • Animation - Play impalingrootscastingunit's Morph Alternate animation
      • Unit Group - Destroy unit group impalingrootsunitgroup
      • Point - Remove impalingrootspoint
What it does is:

*Sets some variables so it can work in waits (Sadly)
*Pauses the Casting Unit (Ancient Protector(Night Elf Tree))
*Plays the Root Down animation
*Attacks the Units in a range with a repeated effect of Impale
*Unroots it self
*Unpauses it self. <NOT WORKING>

How do I make that thing work???
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
As I remember Pause-Unpause is buggy with buildings
Try making your building based on an unit
like Copy footman and change Stats - Is a building to true
or make it a unit with 0 moment
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
:/ wow that is purely strange
I tought maybe there is a thread crash but I cannot see one
 

x3m

x3m

Level 3
Joined
Apr 11, 2008
Messages
51
Perhaps you can't pause the unit. If pause stops all actions of unit, so will the channeling stop.
 
Level 17
Joined
Aug 20, 2007
Messages
1,122
Perhaps you can't pause the unit. If pause stops all actions of unit, so will the channeling stop.

Hmm, I think I have already marked the unit as the caster so it won't need to ask who is casting cause its been recorded already.

Like put unpause to bellow everything

Below all the stuff after wait? Nope, won't work...
 
Status
Not open for further replies.
Top