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

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