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

How do you get a player's gold by killing one of his/her buildings?

Status
Not open for further replies.
Level 3
Joined
Dec 14, 2007
Messages
44
  • GetMoney
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to (Whatever Unit You're using)
    • Actions
      • Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) + ((Owner of (Dying unit)) Current gold))
      • Player - Set (Owner of (Dying unit)) Current gold to 0
you could do this or make one for each player or...
 
Status
Not open for further replies.
Top