• 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] Unit Dies - All units of owner of that unit change ownership

Status
Not open for further replies.
Level 11
Joined
Aug 15, 2004
Messages
710
  • Events
    • Unit - A unit Dies
  • Conditions
    • (Owner of (Dying unit)) Equal to <X player>
  • Actions
    • Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
      • Loop - Actions
        • Unit - Change ownership of (Picked unit) to <Y player> and Change color
This leaks but it's only 1 unit group, no one's comp is going to crash over it.
 
Level 27
Joined
May 30, 2007
Messages
2,872
Let's see now, you want a trigger:
  • Change owner
    • Events
    • Conditions
    • Actions
"Unit Dies", Hmm, is there and event for that?
  • Change owner
    • Events
      • Unit - A unit dies
    • Conditions
    • Actions
" - All units of owner of that unit", Hmm, a group of units for a player?
  • Change owner
    • Events
      • Unit - A unit dies
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
        • Loop - Actions
" change ownership", is that a unit action?
  • Change owner
    • Events
      • Unit - A unit dies
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
        • Loop - Actions
          • Unit - Change ownership of (Picked unit) to NewPlayer and Change color
Couldn't you figure it out?
Honestly, I half expected you to have answered the question the post you asked it in.
 
Level 5
Joined
Jul 8, 2007
Messages
146
first of all, you make no sense in that last sentence so you might want to take a grammar class or 9, second of all you are only like a whole 24 hours too late for your dumb, sarcastic, not funny, unnecessary comment. Some kind person already answered my post in case you could also use a reading class, ok? I don't need your stupid sarcasm if someone already helped me, but thank you for wasting both our times with your sad attempt at, what looks like, a joke.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Phire126, The only person who is a joke is you, not knowing what a leak is and flamming at helpfull people trying to help you. Maybe read the rules infuture before flamming since I am sure we have someing against flamming. Such a question is also so simple that sometimes people like me wonder, "Did you even try making it?". Please behave more mature towards people who try and help you, after all they did spend time to write their post so atleast thank them, not flame at them because they are smarter than you and were trying toenlighten you by explaining how such a trigger is done.

Topic closed.

And remember, be nice to people who try and help you.
 
Status
Not open for further replies.
Top