• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Income system

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • 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