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

Help Trigger Flying Animation

Status
Not open for further replies.
Level 2
Joined
May 18, 2010
Messages
16
So I had a lot of help but this trigger still isn't working. Im trying to make all units around the Casting unit fly. What is my mistake here? I had suggestions to use impale but that is not the effect I want.
Copying this and you will see that nothing will happen to the units.
  • Dwarf WarStomp
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Unit-type of (Casting unit)) Equal to Dwarf
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to War Stomp
        • Then - Actions
          • Set Victim = (Units within 300.00 of (Position of (Casting unit)))
          • Unit Group - Pick every unit in Victim and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
                • Then - Actions
                  • Unit - Add Crow Form to (Picked unit)
                  • Animation - Change (Picked unit) flying height to 1000.00 at 1.00
                  • Unit - Pause (Picked unit)
                  • Game - Display to (All players) the text: hhh
                • Else - Actions
          • Wait 1.00 seconds
          • Unit Group - Pick every unit in Victim and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
                • Then - Actions
                  • Animation - Change (Picked unit) flying height to 0.00 at 1.00
                  • Unit - Remove Crow Form from (Picked unit)
                  • Unit - Unpause (Picked unit)
                  • Game - Display to (All players) the text: ggg
                • Else - Actions
        • Else - Actions
 
Level 2
Joined
May 18, 2010
Messages
16
Thanks a lot it really helped mt out and I dont care about leaking and no idea where you are talking about when you say MUI but this is just for starters getting some basic knowledge.
 
Level 16
Joined
May 1, 2008
Messages
1,605
Well, but you should care of leaks. They reduce the performance of the spell and in time they reduce the performance of the whole map and game.

MUI = Multi User Instance = If more units and more players cast the spell at the same time, it will not causes malfunction.

In your case, if a unit cast this spell and another unit cast it, the first cast is nulled and the spell bugs.

Therefor, I was like you so if you want learn it, then learn it directly correct, so you have less work in the end =)

Greetings and Peace
Dr. Boom
 
Level 2
Joined
May 18, 2010
Messages
16
Wauw the last replys were all useless coz its a single player map and not multiplayer. Its just for testing and learning basics. I know fly height is for flying units that why I add crow form -.- (Very dumb and just spam because he was bored to read all posts)

Ty for all but who cares if its gonna leak if its just for testing some stuff after I can show you some triggers that are better
 
Level 3
Joined
Mar 26, 2011
Messages
16
i tell you whow

i will tell you whow :ogre_hurrhurr: so if you want a unit to fly we dont have to add the crow form we have to remove it when we add it so it will have to be like that

Then - Actions
Unit - Add Crow Form to (Picked unit)
unit- remove crow form to (picked unit)
Animation - Change (Picked unit) flying height to 1000.00 at 1.00
Unit - Pause (Picked unit)
Game - Display to (All players) the text: hhh

i hope my info helped :grin::grin::grin::grin::grin::grin::grin:
 
Level 3
Joined
Mar 26, 2011
Messages
16
soo

soo it should be like that

Dwarf WarStomp
Events
Unit - A unit Starts the effect of an ability
Conditions
(Unit-type of (Casting unit)) Equal to Dwarf
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to War Stomp
Then - Actions
Set Victim = (Units within 300.00 of (Position of (Casting unit)))
Unit Group - Pick every unit in Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
Then - Actions
Unit - Add Crow Form to (Picked unit)
Animation - Change (Picked unit) flying height to 1000.00 at 1.00
Unit - Pause (Picked unit)
Game - Display to (All players) the text: hhh
Else - Actions
Wait 1.00 seconds
Unit Group - Pick every unit in Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
Then - Actions
Animation - Change (Picked unit) flying height to 0.00 at 1.00
Dwarf WarStomp
Events
Unit - A unit Starts the effect of an ability
Conditions
(Unit-type of (Casting unit)) Equal to Dwarf
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to War Stomp
Then - Actions
Set Victim = (Units within 300.00 of (Position of (Casting unit)))
Unit Group - Pick every unit in Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
Then - Actions
Unit - Add Crow Form to (Picked unit)

Unit - Remove Crow Form from (Picked unit)

Animation - Change (Picked unit) flying height to 1000.00 at 1.00
Unit - Pause (Picked unit)
Game - Display to (All players) the text: hhh
Else - Actions
Wait 1.00 seconds
Unit Group - Pick every unit in Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
Then - Actions
Animation - Change (Picked unit) flying height to 0.00 at 1.00
Unit - Unpause (Picked unit)
Game - Display to (All players) the text: ggg
Else - Actions

Unit - Unpause (Picked unit)
Game - Display to (All players) the text: ggg
Else - Actions
Else - Actions




ok now have fun flying :ogre_hurrhurr::ogre_hurrhurr::ogre_haosis::ogre_haosis: ( i have removed the crow form below the add crowform ( dont think that it is really spaced !!) )
 
Status
Not open for further replies.
Top