• 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] Declaring Ownership when a Destuctible Dies?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
Heres what I've got.
EVENT:
Destructible - A destructible within K1 G1 <gen> dies
CONDITION:
(Destuctible-type of (Dying Destructible)) Equal to Gold Source
ACTIONS:
Player - Add 125 to Player 1 (Red) Current gold

I have one of these for every player, and it works fine when no one else is killing the destuctibles. But when another player kills them, it ends up adding gold for everyone.
Not sure how to make it specific.
 
Level 8
Joined
Apr 30, 2009
Messages
338
Do add 125 gold to (Owner of (Killing unit)) as your action instead.


  • gold125
    • Events
      • Destructible - A destructible within Region 000 <gen> dies
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to Rock Chunks
    • Actions
      • Player - Add 125 to (Owner of (Killing unit)) Current gold
Owner of Unit -> Killing Unit function in the menu


If this won't work, try just making the destructibles into units controlled by neutral passive and do this:

  • gold2
    • Events
      • Unit - A unit owned by Neutral Passive Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Gold Mine
    • Actions
      • Player - Add 125 to (Owner of (Killing unit)) Current gold
 
Last edited:
Status
Not open for further replies.
Top