• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Income? {income-by-region system (like Dark Ages of Warcraft)}

Status
Not open for further replies.
Level 5
Joined
Nov 2, 2008
Messages
126
Hi i looked at the trigger turtorials here on hve but found nothing about income could some1 help
 
What type of income? Each farm gives x income? Timer income?
  • Nahkampf-Initialisierung
    • Events
      • Time - X expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Farm) and do (Actions)
        • Loop - Actions
          • Player - Set (Owner of (Picked unit)) Current Gold to (((Owner of (Picked unit)) Current Gold) + 200)
Both things covered? >_>
 
  • Untitled Trigger 001
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set UnitGroup = (Units of type Circle of Power)
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Player - Add 10 to (Owner of (Picked unit)) Current gold
      • Custom script: call DestroyGroup(udg_UnitGroup)
or

  • Untitled Trigger 001
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set UnitGroup = (Units owned by (Player((Integer A))) of type Circle of Power)
          • Set Integer = (Number of units in UnitGroup)
          • Player - Add Integer to (Player((Integer A))) Current gold
          • Custom script: call DestroyGroup(udg_UnitGroup)
 
Status
Not open for further replies.
Top