I have created a trigger so that if a unit gets a fatal hit, the hero will just become incapacitated and you can revive the hero with a specific spell. The problem is, that it only works for specific units (i.e. Zeratul) but it should work for "any unit". At the beginning of the map you can choose your hero so i cant specify the unit before the game starts.
Here is what the trigger currently looks like:
The conditions are 2 behaviors: if the unit is incapacitated AND the unit recived the revive spell (both buff behaviors on the unit) then it will be revived with 50% of life.
Now i need it to work for something like "any hero unit".
At the beginning of the map you can choose your hero so i cant specify the unit before the game starts.
When you create the hero store your hero in a variable with an array for players or something alike
I have created a trigger so that if a unit gets a fatal hit, the hero will just become incapacitated and you can revive the hero with a specific spell. The problem is, that it only works for specific units (i.e. Zeratul) but it should work for "any unit". At the beginning of the map you can choose your hero so i cant specify the unit before the game starts.
Here is what the trigger currently looks like:
The conditions are 2 behaviors: if the unit is incapacitated AND the unit recived the revive spell (both buff behaviors on the unit) then it will be revived with 50% of life.
Now i need it to work for something like "any hero unit".
Hope someone can help me.
At the beginning of the map you can choose your hero so i cant specify the unit before the game starts.
When you create the hero store your hero in a variable with an array for players or something alike
@khazr: Go
ok found it