• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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: 41
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