Ability has a trigger, but does nothing

twisterghost

New Member
Reaction score
3
So, for some reason, this ability isnt doing anything:
Code:
Flying Smash
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Unit-type of (Triggering unit)) Equal to Hunter
        (Ability being cast) Equal to Flying Smash 
    Actions
        Unit - Add Crow Form to (Triggering unit)
        Unit - Remove Crow Form from (Triggering unit)
        Animation - Change (Triggering unit) flying height to 1000.00 at 700.00
        Animation - Change (Triggering unit) flying height to 0.00 at 4000.00
        Environment - Create a 20.00 second Temporary crater deformation at (Position of (Triggering unit)) with radius 512.00 and depth 64.00
        Unit Group - Pick every unit in (Units within 500.00 of (Position of (Triggering unit))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Race of (Owner of (Picked unit))) Not equal to (Race of (Owner of (Triggering unit)))
                    Then - Actions
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing 400.00 damage of attack type Chaos and damage type Normal
                    Else - Actions
                        Do nothing

Anyone see a problem?
The unit is supposed to rise up, then slam down, make the crater and deal enemy units damage, but nothing happened.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Code:
Animation - Change (Triggering unit) flying height to 1000.00 at 700.00
Animation - Change (Triggering unit) flying height to 0.00 at 4000.00

You should probably add a wait between those.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Well, think about it. You want it to wait until the unit is at the 1000 flying height. So, you could have a conditional wait that waits for that, or you could just do the calculation yourself. 1000/700 = about 1.5 seconds.

> Ok, its working now, but the crater isnt working

Add another wait after the second one?
 

twisterghost

New Member
Reaction score
3
Still not working
Code:
Flying Smash
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Unit-type of (Triggering unit)) Equal to Hunter
        (Ability being cast) Equal to Flying Smash 
    Actions
        Unit - Add Crow Form to (Triggering unit)
        Unit - Remove Crow Form from (Triggering unit)
        Animation - Change (Triggering unit) flying height to 1000.00 at 700.00
        Wait 1.50 seconds
        Animation - Change (Triggering unit) flying height to 0.00 at 4000.00
        Wait 0.30 seconds
        Environment - Create a 20.00 second Temporary crater deformation at (Position of (Triggering unit)) with radius 512.00 and depth 64.00
        Unit Group - Pick every unit in (Units within 500.00 of (Position of (Triggering unit))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Race of (Owner of (Picked unit))) Not equal to (Race of (Owner of (Triggering unit)))
                    Then - Actions
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing 400.00 damage of attack type Chaos and damage type Normal
                    Else - Actions
                        Do nothing
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Perhaps you should upload the map?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top