Building Gives Income!?

strembitsky

Member
Reaction score
1
I am making a map where you build a tower, and I want it to be so every 30 seconds you get 50 gold (as long as that building is alive). Can anyone give me a trigger?

P.S. I also want it so if Player 1 (Red) build it, he is the only one who gets the money. Please help!
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
Trigger:
  • Trigger
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Your Building) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Player - Add 50 to (Owner of (Picked unit)) Current gold
      • Custom script: call DestroyGroup (udg_TempGroup)
 
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