• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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?
 
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

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.
 
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
 
Event - A Unit Dies

Condition - Dying Unit equal to minion

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