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

Gold tower

Status
Not open for further replies.
Level 1
Joined
Jan 15, 2013
Messages
61
Hi guys. I want to make a tower that will give you 1 gold every 10 sec for example. Then you can upgrade it to give you 1g/7sec, 1g/5sec/, 1g/3sec and finally 1 gold every second. Can i make it in one trigger or i dont need any trigger for that. Please help. Thx in advance
 
Level 11
Joined
Jun 20, 2009
Messages
880
  • Gold Tower
    • Events
      • Time - Every 7.00 seconds of game time
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Gold Tower LVL 1
            • Then - Actions
              • Player - Add 1 to (Owner of (Picked unit)) Current gold
            • Else - Actions
 
Status
Not open for further replies.
Top