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

[Help] Trigger

Status
Not open for further replies.
Level 9
Joined
Dec 4, 2007
Messages
562
Coud anybody tell me how I make so that all units in a specific region gets 10 gold every 5 second?

And when they leave the region they dont get it anymore
 
Level 10
Joined
Jun 21, 2007
Messages
643
  • Events:
    • Time - Every 5 seconds of game time
  • Conditions:
    • Integer Comparison - Number of units "Money region" Greather than 0
  • Actions:
    • For Each (Integer A) 1 to 12
      • Player - Add Property (Gold) 10 x Number of player owned units in region "money region", (Player - convert player index to player - (For Loop Integer A))
 
Status
Not open for further replies.
Top