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

How do I get a Peasent to harvest gold without goldmine?

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
This is what I want to do.

After a Peasant kills a farm building, that Peasant has gold harvested (bag of gold over shoulder animation) as if he mined it from a goldmine. How can I do this?
 
Level 6
Joined
Nov 24, 2012
Messages
198
The Trigger like this i think
  • Config
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Farm = Farm
      • Set Gold = 20
  • Farm
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Farm
    • Actions
      • Set Harvester = (Killing unit)
      • Set Owner = (Owner of Harvester)
      • Animation - Add the gold animation tag to Harvester
      • Unit - Remove Harvest (Gold and Lumber) from Harvester
      • Unit - Add Return Gold and Lumber to Harvester
  • Return
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Return Gold and Lumber
    • Actions
      • Player - Add Gold to Owner Current gold
      • Animation - Remove the gold animation tag to Harvester
      • Unit - Remove Return Gold and Lumber from Harvester
      • Unit - Add Harvest (Gold and Lumber) to Harvester
 
Status
Not open for further replies.
Top