Trigger: Order x unit to harvest gold from y unit

Nathan0093

New Member
Reaction score
4
Hi all. Im having problem with making the peasant automatically starts gathering gold from a gold mine right after he built the mine. For your information, the gold mine ability has to be triggered since I do not want the mines to show up on the mini map during the game. It should be simple, but for some reason this wont work. Help?

Code:
Gold Mine Ability
    Events
        Unit - A unit Finishes construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to (==) Farm (Gold Mine)
    Actions
        Unit - Add Farm Gold Mine to (Constructed structure)
        Wait 1.00 game-time seconds
        Unit - Order (Triggering unit) to Harvest (Constructed structure)
 

Lord Regno

Active Member
Reaction score
19
Test this:

Trigger:
  • Auto
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Gold Mine
    • Actions
      • Wait 1.00 seconds <-if you want this
      • Unit - Order (Triggering Unit) to Harvest Nearby Gold <- This was hard to find first time I search for it it's are here: Unit- Issue order with no target
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
Your best bet is Random unit from (All units within 128 of triggering unit matching Unit type of Matching Unit equal to peasant)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top