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

Income system

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Income trigger
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions) // Set the 12 to the number of players you have
        • Loop - Actions
          • Set Temp_Group_1 = (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Player((Integer A)))))))
          • Player - Add (10 x (Number of units in Temp_Group_1)) to (Player((Integer A))) Current gold
          • Player - Add (5 x (Number of units in Temp_Group_1)) to (Player((Integer A))) Current lumber
          • Custom script: call DestroyGroup(udg_Temp_Group_1)
 
Status
Not open for further replies.
Top