• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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