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

I need help with a trigger!

Status
Not open for further replies.
Level 2
Joined
May 19, 2008
Messages
18
Let's say that I have a hero, this hero has one spell, to summon a unit to fight for him.
So everytime he summons this unit, the hero becomes invulnerable permanently untill his unit dies.
When his summoned unit dies he becomes vulnerable again.
I need a trigger for this.
I managed to make the first part when the hero summons the unit.
But i don't know how to make the hero vulnerable again, when his summoned unit dies.
Can someone help me with this please?
 

Deleted member 177737

D

Deleted member 177737

Here you go, this should work.

I used a timer to decide when the summoned unit should be killed off, but you can easily modify the second trigger to check if the summoned unit is dead or not.
 

Attachments

  • example.w3x
    16.7 KB · Views: 42
Level 2
Joined
May 19, 2008
Messages
18
Yea, well the idea is very good, but my minion is permanent, so I don't need a timer :(, I would like the hero to become vulnerable when the minion dies, If he dies.
 
Level 2
Joined
May 19, 2008
Messages
18
What about this:
Event - A unit dies
Condition - Dying Unit equal with "Minion"
Action - If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions (here I don't know what to put :(
Else - Actions - Do Nothing
 

Deleted member 177737

D

Deleted member 177737

Event - A Unit Dies

Condition - Dying Unit equal to minion

Event - Make unit "hero" vunerable
 
Status
Not open for further replies.
Top