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

[Solved] Animation

Status
Not open for further replies.
Level 3
Joined
Apr 30, 2013
Messages
22
First thing: My English is bad so sorry :grin:
Now okay, let's get to the point. I have a question :" How can we change the normal walk with gold,attack with gold,stand with gold animation of a Peasant when in the Peasant inventory has somekind item ( Ex: Gold ) and when the item remove, the Peasant returnt to normal animtion". Can anyone know how to do this ? I'm making some kind of simple Mining System and i need this to comple the system. :grin:
 
Level 10
Joined
Dec 15, 2012
Messages
650
This should works properly
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Unit Type of (Triggering unit)) equal to Peasant
    • (Item Type of (Manipulating item)) equal to Gold
  • Actions
    • Animation - Add Gold animation tag to (Triggering unit)
when he drops item
  • Events
    • Unit - A unit Loses an item //If I remember, this is the event.
  • Conditions
    • (Unit Type of (Triggering unit)) equal to Peasant
    • (Item Type of (Manipulating item)) equal to Gold
  • Actions
    • Animation - Remove Gold animation tag to (Triggering unit)
 
Status
Not open for further replies.
Top