• 🏆 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!

[Trigger] Every 60 second - Building money

Status
Not open for further replies.

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,266
Very simple!

  • IronMine
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of living IronMine units owned by (Picked player)) Greater than or equal to 1
            • Then - Actions
              • Player - Set (Picked player) Current gold to (((Picked player) Current gold) + ((Number of living IronMine units owned by (Picked player)) x 200))
            • Else - Actions
 
Very simple!

  • IronMine
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of living IronMine units owned by (Picked player)) Greater than or equal to 1
            • Then - Actions
              • Player - Set (Picked player) Current gold to (((Picked player) Current gold) + ((Number of living IronMine units owned by (Picked player)) x 200))
            • Else - Actions

You saved my day AND showed me a new feature I can take advantage of in future map-making projects.. :thumbs_up: +Rep!!
 
Status
Not open for further replies.
Top