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

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