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

[Trigger] How can I screw up such a easy trigger?

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
I made this trigger, but it doesn't function completely! This is the what doesn't work:
  • Actions
    • Unit - Create 1 Elefthia (Woman) for Player 1 (Red) at (Center of ElefthiaDestination1) facing 0.00 degrees
    • Unit Group - Add (Last created unit) to Elefthia
    • Unit Group - Pick every unit in Elefthia and do (Animation - Play (Picked unit)'s death animation)
    • Unit Group - Pick every unit in Elefthia and do (Animation - Change (Picked unit)'s animation speed to 10000.00% of its original speed)
    • Wait 1.00 seconds
    • Unit Group - Pick every unit in Elefthia and do (Animation - Change (Picked unit)'s animation speed to 0.00% of its original speed)
The rest of the trigger works perfectly, but at this part, the unit is created as it should be, but doesn't perform the Death animation at all. Can anyone see something I obviously don't?
 
Level 8
Joined
Dec 16, 2007
Messages
252
It leaks.


Try to set it to 200% and see if it works.


And if that doesn't work, try to set it's speed, then play the animation, to make sure setting speed doesn't cancel it. But I still think it's too fast for you to see it.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
The group involves only 1 unit, so that's not it. The group is created, because I removed another unit from the game who was in that group who did took the orders properly, then I cleared the group of units and then this part came (where I add this unit to the group, making it the only unit in the group)

Any other possibilities?
 
Level 5
Joined
Dec 18, 2007
Messages
205
what about using a variable instead of the group-pick event?
if you only need 1 (the unit created) this woukld be a solution...
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
I mean this Action
  • Unit Group - Remove all units from Elefthia
I removed or killed the unit that was in this Unit-Group, then used this action to clear the Unit-Group of units, and then added the newly created unit to this group (as in the trigger I posted in the first post)
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
What's the Event?

  • The Dying Syndrome
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Set TempUnit = (Last created unit)
      • Unit Group - Add TempUnit to FootmanGroup
      • Unit Group - Pick every unit in FootmanGroup and do (Actions)
        • Loop - Actions
          • Animation - Change (Picked unit)'s animation speed to 4000.00% of its original speed
          • Animation - Play (Picked unit)'s death animation
      • Wait 1.00 seconds
      • Unit Group - Pick every unit in FootmanGroup and do (Actions)
        • Loop - Actions
          • Animation - Change (Picked unit)'s animation speed to 100.00% of its original speed
This works just fine for me, minus the leaking. Also, you need to set it to 100% of its original speed...not 0...
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
When you use Play Animation, the animation is played only once and automatically stops the animation until the unit has to play a new animation, which makes it return to default. That's why I need the animation speed of 0%, so I keep the death animation at all time.

The event I use is Melee Initialization.

And your trigger wouldn't change anything, because the death animation doesn't start at all. I need to find out why the death animation doesn't start. I added the entire map, then you can check out what the problem is. The part I posted in the first post is a part of the trigger called 'Palmasis killed'.
 

Attachments

  • Part 1 - Prologue.w3x
    434.8 KB · Views: 49
Status
Not open for further replies.
Top