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

Two questions... {structure giving a player X lumber per second / removing (...)}

Status
Not open for further replies.
Level 5
Joined
Sep 7, 2008
Messages
139
Hello, I have two questions. I have been trying to create a trigger that gives the owner of a built structure X lumber per second. But I can't figure out how. Can anyone help me?

And the second question is pretty easy I believe: How do I create a trigger that removes all structures and units owned by a player that leaves?

Help is appreciated.
 
Level 17
Joined
Nov 18, 2008
Messages
1,538
  • Lumber Give
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
      • (Barracks 0000 <gen> is alive) Equal to True
    • Actions
      • Player - Add 1000 to (Owner of Barracks 0000 <gen>) Current lumber
  • Remove Units
    • Events
      • Player - Player 1 (Red) leaves the game
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Remove (Picked unit) from the game)
 
Status
Not open for further replies.
Top