How do I make a structure add wood/gold every 5 seconds?

Linear88

New Member
Reaction score
2
How do I make a structure add wood/gold every 10 seconds? I'm not sure of how to make it using triggers.

This what I did:

Gold Maker
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Town Hall
Actions
Player - Add 10 to (Triggering player) Current gold

But this only adds the gold after a Town Hall is created. How do I make it add gold/wood every 10 seconds?
 
Reaction score
65
Try this:
Code:
Events
    Time - Every 10.00 seconds of game time
Actions
    Set UGroup = (Units of type Town Hall)
    Unit Group - Pick every unit in UGroup and do (Actions)
        Loop - Actions
            Player - Add 10 to (Owner of (Picked unit)) Current gold
    Custom script: call DestroyGroup (udg_UGroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top