• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger Help

Status
Not open for further replies.
Level 1
Joined
Jan 29, 2019
Messages
1
So im still kinda new to the whole map creating and wanted to ask for help.
Ive been struggling a bit with creating a "lumber farm"
How do i create a trigger that produces wood every second that a player has build it?

Thanks in advance!
 
You need a trigger executing every second. To do something for all Players use the Player Group Loop Action. Inside the Player Group Loop access the current iterated Player with Picked Player.

Now add Lumber for picked Player equal to the amount of farms of that picked player current living.
  • Lumber Farms
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Add (Number of living "Lumber Farm" units owned by (Picked player)) to (Picked player) Current lumber
 
Status
Not open for further replies.
Top