• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] need help with simple trigger

Status
Not open for further replies.
Level 4
Joined
Apr 30, 2007
Messages
62
heres my trigger

  • Knock Down
    • Ereignisse
      • Einheit - A unit Beginnt, eine Fähigkeit zu wirken
    • Bedingungen
      • (Ability being cast) Gleich Knock Down gladiator
    • Aktionen
      • Set A_Random = 0
      • Set A_Random = (Random integer number between 1 and 2)
      • Einheit - Pause ein (Casting unit)
      • Animation - Play (Casting unit)'s attack animation
      • Wait 0.60 seconds
      • Einheit - Pause aus (Casting unit)
      • If (A_Random Gleich 1) then do (Einheit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((((Kraft of (Casting unit) (Einschließen bonuses)) x 4) + (0 x 0)))) damage of attack type Zaubersprüche and damage type Normal) else do (Do nothing)
why doesnt work the animation and the break off ... ?
(ps its german Pause=Break ein=on aus=off)
 
The unit can't do things when it's paused.

German:
  • Knock Down
    • Ereignisse
      • Einheit - A unit Beginnt, eine Fähigkeit zu wirken
    • Bedingungen
      • (Ability being cast) Gleich Knock Down gladiator
    • Aktionen
      • Set A_Random = (Random integer number between 1 and 2)
      • Einheit - Pause ein (Casting Unit)
      • Einheit - Pause aus (Casting Unit)
      • Animation - Play (Casting unit)'s attack animation
      • Wait 0.60 seconds
      • If (A_Random Gleich 1) then do (Einheit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((((Kraft of (Casting unit) (Einschließen bonuses)) x 4) + (0 x 0)))) damage of attack type Zaubersprüche and damage type Normal) else do (Do nothing)
English:
  • Knock Down
    • Events
      • Unit - A unit begins casting an ability
    • Conditions
      • (Ability being cast) equal to Knock Down gladiator
    • Actions
      • Set A_Random = (Random integer number between 1 and 2)
      • Unit - Pause (Casting unit)
      • Unit - Resume (Casting unit)
      • Animation - Play (Casting unit)'s attack animation
      • Wait 0.60 seconds
      • If (A_Random equal to 1) then do (Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real ((((Strength of (Casting unit) (?Including? bonuses)) x 4) + (0 x 0)))) damage of attack type (Magic) and damage type (Normal)) else do (Do nothing)
 
It does not show any animation because the unit is playing the casting animation of the spell, and it cannot play 2 animations at a time. The best way to fix this is to go to your spell, look for "Art - Animation Names" and delete everything and put in "attack". Hope I helped!
 
Status
Not open for further replies.
Back
Top