Animations

From Titan Land LoP Wiki

Animations are one of the more complex aspects of building in Warcraft III sandbox maps. There are many details to explore, but a superficial understanding can be reached fairly quickly by most players. Animation tags allow a single model to have many distinct appearances, which happens very often for units that have multiple forms and for Town Hall-type models.

Animation Overview

In Warcraft III, there are two part to model animations: Animation Names and Animation Tags. Animation names usually indicate the action being taken by the unit, such as Attack or Death, and playing an animation for a unit is usually only lasts until a unit takes another action. Animation tags allow units to have multiple sets of animations. For example, Workers use the Gold or Lumber tags when carrying resources. Giving a unit an animation tag is usually permanent, so it will remain even when units take other actions.

Animations

Animations are the sequences of movements performed by models in order to convey actions being taken. In Warcraft III, each animation has a special name, and a single animation can also have more than one name. Using animation commands, a unit can be made to play different animations. However, as soon as it takes a new action, the unit will play that action's animation, and won't play the previous one again until ordered to.

The Save System currently does not save a unit's current animation. To permanently alter a unit and save thus alteration, animation tags should be used instead. There are 11 animation names in the game:

  • Birth
    • This is used for the construction animation of buildings and the spawning animation of summoned units.
  • Death
    • Most models feature an animation with this name. It used used when a unit dies, or when a missile hits its target.
  • Decay
    • Most non-hero unit models feature an animation with this name. It is used used after a unit dies, while its body is decaying. Generally a model will have both Decay Bone and Decay Flesh animations.
  • Dissipate
    • Most hero models feature an animation with this name. It is used after a hero dies, while its body is being lifted up into the sky.
  • Stand
    • Almost every model features an animation with this name. It is used while the model is idle and not taking any other actions.
  • Walk
    • Almost every unit model features this animation. It is used when a unit is walking. Unfortunately, this animation cannot be played using animation commands due to a limitation imposed by Warcraft III.
  • Attack
    • Almost every unit model features an animation with this name. As the name implies, it is used when a unit attacks.
  • Morph
    • Used by units when morphing into alternate forms. Examples include: Demon Hunter, Druids and Medivh.
  • Sleep
    • Very few models have this animation. It mostly used by creeps, when they are asleep at night.
  • Spell
    • Used by units when casting spells.
  • Portrait
    • These animation are played in the Portrait, the UI element in which a unit's face is normally displayed when selecting it.

Animation Tags

Animation tags are used for units that require multiple sets of animations. Tags can be added or removed from a unit, changing the way that it looks. Unlike animations, tags permanently alter a unit, even when it is taking other actions, and they are also saved by the Save System.

  • Gold
    • Used by workers while they are carrying gold.
  • Lumber
    • Used by workers while they are carrying lumber.
  • Work
    • Used by workers while they are building or repairing structures.
  • Flesh
    • Used by dead non-hero units for their Decay animation, before turning into bones. Also used by villager models to carry around a corpse.
  • Ready
    • Used by some units with attack animations, they will play their Stand Ready animation while their attack is on cooldown.
  • One
  • Two
  • Throw
  • Slam
  • Large
  • Medium
  • Small
  • Victory
  • Alternate
    • Used by most units that morph, including Ancients, Demon Hunters and Druids.
  • Defend
    • Used by models that have the defend ability.
  • Swin
  • Spin
  • Fast
    • Generally used alongside the Walk animation, to give units a different animation when running faster.
  • Upgrade
    • Used by structures with upgrades.
  • First
    • Used by structures with multiple upgrades.
  • Second
    • Used by structures with multiple upgrades.
  • Third
    • Used by structures with multiple upgrades.
  • Fourth
    • Used by structures with multiple upgrades.
  • Fifth
    • Used by structures with multiple upgrades.

Animation Commands

-anim & 'anim

These commands are used to add/remove tags from units. See -anim and 'anim.

-tag

This command is used to add/remove tags from units. See -tag.