• 🏆 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!

Why does this do not work?

Status
Not open for further replies.
Level 2
Joined
Dec 29, 2008
Messages
18
Whats wrong with this trigger? Only the triggering unit is paused and goes into the air.Trigger:Events
Unit-A unit Starts the effect of an ability
Conditions
(Ability being Cast) Equal to Primary Lotus
Actions
Unit- Move (Triggering unit) instantly to (Position of (Target unit of ability being cast)
Unit - Add Flying Trick to (Triggering unit)
Unit - Add Flying Trick to (Target unit of ability being cast)
Unit - Pause (Triggering unit)
Unit - Pause (Target unit of ability of being cast)
Animation - Change (Triggering unit) flying height to 500.00 at 10000.00
Animation - Change (Target unit of ability being cast) flying height to 500.00 at 10000.00
Animation - Play (Triggering unit)'s attack animation
Wait 1.50 seconds
Unit - Unpause (Triggering unit)
Unit - Unpause (Target unit of ability being cast)
Unit - Remove Flying Trick from (Target unit of ability being cast)
Unit - Remove (Flying Trick from (Triggering unit)
Animation - Change (Triggering unit flying height to 0.00 at 10000.00
Animation - Change (Target of ability being cast) flying height to 0.00 at 10000.00
If (Level of Primary Lotus for (Triggering unit)) Equal to 1) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 2000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 2) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 4000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 3) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 6000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 4) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 8000 attack type of Chaos and damage type Shadow Strike
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\FlameStrike1.mdl
Special Effect - Destroy (Last created special effect
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
What's the use of Pausing the unit? It'll only cause all commands between to be executed to fast without the wait and returns to 0, so it does nothing really. Remove the Pause Unit commands.

Next time, Copy As Text the trigger and place them between TRIGGER tags.
 
Level 17
Joined
Jun 17, 2007
Messages
1,433
Whats wrong with this trigger? Only the triggering unit is paused and goes into the air.Trigger:Events
Unit-A unit Starts the effect of an ability
Conditions
(Ability being Cast) Equal to Primary Lotus
Actions
Unit- Move (Triggering unit) instantly to (Position of (Target unit of ability being cast)
Unit - Add Flying Trick to (Triggering unit)
Unit - Add Flying Trick to (Target unit of ability being cast)
Unit - Pause (Triggering unit)
Unit - Pause (Target unit of ability of being cast)
Animation - Change (Triggering unit) flying height to 500.00 at 10000.00
Animation - Change (Target unit of ability being cast) flying height to 500.00 at 10000.00
Animation - Play (Triggering unit)'s attack animation
Wait 1.50 seconds
Unit - Unpause (Triggering unit)
Unit - Unpause (Target unit of ability being cast)
Unit - Remove Flying Trick from (Target unit of ability being cast)
Unit - Remove (Flying Trick from (Triggering unit)
Animation - Change (Triggering unit flying height to 0.00 at 10000.00
Animation - Change (Target of ability being cast) flying height to 0.00 at 10000.00
If (Level of Primary Lotus for (Triggering unit)) Equal to 1) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 2000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 2) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 4000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 3) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 6000 attack type of Chaos and damage type Shadow Strike
If (Level of Primary Lotus for (Triggering unit)) Equal to 4) then do (Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 8000 attack type of Chaos and damage type Shadow Strike
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\FlameStrike1.mdl
Special Effect - Destroy (Last created special effect
Why exactly do you pause the units?
Also, instead of having several different actions for damage, just use:
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (2000.00 x (Real((Level of Primary Lotus for (Triggering unit))))) damage of attack type Chaos and damage type Shadow Strike
 
Level 2
Joined
Dec 29, 2008
Messages
18
I did that so that the player would not see the added skill. Ty for helping me reducing the number of actions for the damaging.Sorry but the trigger still did not work for the unit of targeted ability.
 
Status
Not open for further replies.
Top