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

attack animation pattern

Status
Not open for further replies.
Level 16
Joined
Jan 21, 2011
Messages
999
well, there's this when a unit attacks and it uses stab animation. how can i change the unit to stab, then to chop, then to stab again!? there's this 40 animation villager that i got and i wanna make it to it's full potential.
also, can you help me when i equip some shield attachment it turns into defend animation?

theres two questions...
 
Level 15
Joined
Sep 27, 2009
Messages
669
well, there's this when a unit attacks and it uses stab animation. how can i change the unit to stab, then to chop, then to stab again!? there's this 40 animation villager that i got and i wanna make it to it's full potential.
also, can you help me when i equip some shield attachment it turns into defend animation?

theres two questions...

Hmm, for first you might use this:
  • Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to YOUR UNIT
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Equal to 50
        • Then - Actions
          • Animation - Play (Attacking unit)'s stab animation
        • Else - Actions
          • Animation - Play (Attacking unit)'s chop animation
I think this will work...

And for other: You can make some kind of system, like:
-Shields are Campaign Items, or to make it for every single shield:
THIS IS FOR EVERY SHIELD:
  • Shield
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Animation - Add the SHIELD animation tag to (Hero manipulating item)
  • Shield Remove
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Animation - Remove the SHIELD animation tag to (Hero manipulating item)


And this is for Campaign Items:
  • Shield
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Campaign
    • Actions
      • Animation - Add the SHIELD animation tag to (Hero manipulating item)
  • Shield Remove
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Campaign
    • Actions
      • Animation - Remove the SHIELD animation tag to (Hero manipulating item)
I hope this helps :grin:
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Hmm, for first you might use this:
  • Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to YOUR UNIT
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Equal to 50
        • Then - Actions
          • Animation - Play (Attacking unit)'s stab animation
        • Else - Actions
          • Animation - Play (Attacking unit)'s chop animation
I think this will work...

And for other: You can make some kind of system, like:
-Shields are Campaign Items, or to make it for every single shield:
THIS IS FOR EVERY SHIELD:
  • Shield
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Animation - Add the SHIELD animation tag to (Hero manipulating item)
  • Shield Remove
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
      • Animation - Remove the SHIELD animation tag to (Hero manipulating item)


And this is for Campaign Items:
  • Shield
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Campaign
    • Actions
      • Animation - Add the SHIELD animation tag to (Hero manipulating item)
  • Shield Remove
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Campaign
    • Actions
      • Animation - Remove the SHIELD animation tag to (Hero manipulating item)
I hope this helps :grin:

You must remember that Animation and Attack Animation is 2 different thing
Perhaps, your Animation is too slow, perhaps the original Attack Animation is faster, which will make the game looks weird
You're swinging a sword (doesn't hit yet) but the unit already taken some damage
 
Status
Not open for further replies.
Top