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

need help on the anims

Status
Not open for further replies.
Level 6
Joined
Mar 29, 2004
Messages
222
for some odd reason, whenever i use this spell, the created units anims will not work...here are the triggers...

Ceremonial Dance
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Ceremonial Dance
Actions
Wait 0.50 seconds
Set Dancing = (Triggering unit)
Unit - Create 1 Tauren Chieftain (Dummy) for Neutral Passive at ((Position of (Triggering unit)) offset by (0.00, -200.00)) facing (Facing of Dancing) degrees
Set DanceDown = (Last created unit)
Unit - Create 1 Tauren Chieftain (Dummy) for Neutral Passive at ((Position of (Triggering unit)) offset by (0.00, 200.00)) facing (Facing of Dancing) degrees
Set DanceUp = (Last created unit)
Unit - Create 1 Tauren Chieftain (Dummy) for Neutral Passive at ((Position of (Triggering unit)) offset by (200.00, 0.00)) facing (Facing of Dancing) degrees
Set DanceRight = (Last created unit)
Unit - Create 1 Tauren Chieftain (Dummy) for Neutral Passive at ((Position of (Triggering unit)) offset by (-200.00, 0.00)) facing (Facing of Dancing) degrees
Set DanceLeft = (Last created unit)
Unit - Pause Dancing
Unit Group - Pick every unit in (Units of type Tauren Chieftain (Dummy)) and do (Actions)
Loop - Actions
Unit - Change color of (Triggering unit) to (Color of (Owner of Dancing))
Trigger - Turn on Dancing Movement <gen>
Trigger - Turn on Dancing <gen>
Wait 3.50 seconds
Trigger - Turn off Dancing Movement <gen>
Trigger - Turn off Dancing <gen>
Unit - Unpause Dancing
Unit Group - Pick every unit in (Units of type Tauren Chieftain (Dummy)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Unit - Remove (Picked unit) from the game



Dancing Movement
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Animation - Reset DanceDown's animation
Animation - Reset DanceLeft's animation
Animation - Reset DanceRight's animation
Animation - Reset DanceUp's animation
Unit - Make DanceDown face ((Facing of DanceDown) + 10.00) over 0.00 seconds
Unit - Make DanceLeft face ((Facing of DanceLeft) + 10.00) over 0.00 seconds
Unit - Make DanceRight face ((Facing of DanceRight) + 10.00) over 0.00 seconds
Unit - Make DanceUp face ((Facing of DanceUp) + 10.00) over 0.00 seconds
Unit - Move DanceDown instantly to ((Position of DanceDown) offset by -10.00 towards ((Facing of DanceDown) + 5.00) degrees)
Unit - Move DanceLeft instantly to ((Position of DanceLeft) offset by -10.00 towards ((Facing of DanceLeft) + 5.00) degrees)
Unit - Move DanceRight instantly to ((Position of DanceRight) offset by 10.00 towards ((Facing of DanceRight) + 5.00) degrees)
Unit - Move DanceUp instantly to ((Position of DanceUp) offset by 10.00 towards ((Facing of DanceUp) + 5.00) degrees)


Dancing
Events
Time - Every 1.27 seconds of game time
Conditions
Actions
Special Effect - Create a special effect attached to the origin of DanceDown using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Create a special effect attached to the origin of DanceLeft using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Create a special effect attached to the origin of DanceRight using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Create a special effect attached to the origin of DanceUp using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Special Effect - Create a special effect attached to the origin of Dancing using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
Animation - Play DanceDown's Attack Slam animation
Unit Group - Pick every unit in (Units within 200.00 of (Position of DanceDown) matching ((Owner of (Matching unit)) Not equal to (Owner of Dancing))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Level of Ceremonial Dance for Dancing))) x 10.00))
Animation - Play DanceLeft's Attack Slam animation
Unit Group - Pick every unit in (Units within 200.00 of (Position of DanceLeft) matching ((Owner of (Matching unit)) Not equal to (Owner of Dancing))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Level of Ceremonial Dance for Dancing))) x 10.00))
Animation - Play DanceRight's Attack Slam animation
Unit Group - Pick every unit in (Units within 200.00 of (Position of DanceRight) matching ((Owner of (Matching unit)) Not equal to (Owner of Dancing))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Level of Ceremonial Dance for Dancing))) x 10.00))
Animation - Play DanceUp's Attack Slam animation
Unit Group - Pick every unit in (Units within 200.00 of (Position of DanceUp) matching ((Owner of (Matching unit)) Not equal to (Owner of Dancing))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Level of Ceremonial Dance for Dancing))) x 10.00))
Animation - Play Dancing's Attack Slam animation
Unit Group - Pick every unit in (Units within 200.00 of (Position of Dancing) matching ((Owner of (Matching unit)) Not equal to (Owner of Dancing))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Level of Ceremonial Dance for Dancing))) x 10.00))



Just as a notice, the Tauren Chieftan (Dummy) is a normal Tauren Chieftan model...
 
Level 7
Joined
May 16, 2004
Messages
355
I don't know what exactly you can't get working but I do see some oversights. Right at casting of the spell don't put a wait before setting the variable. This can cause leaks if another spell is cast in between the two if you get me. Secondly when you have your pick Tauren Dummies you have set triggering unit as whatever, that should be Picked Unit as opposed to your triggering. If you could clarify what exactly isn't working I'll look deeper into the trigger and see if I can't find it
 
Status
Not open for further replies.
Top