- Joined
- Mar 17, 2012
- Messages
- 582
Hi everyone! Could someone help me with a revive trigger?
In my map if a Hero dies - the grave appears on his place and expires in 30 seconds.
If hero is resurrected while the grave stands - he will not respawn on the start location, else he'll respawn on the start location)))
I have a problem triggering it... I used an Countdown timer but when my hero dies - the game crashes, so I removed them and made it with Wait 30 seconds and check conditions... but I know that it is not correct so I'm asking you for help!
Here is how my trigger looks now:
In my map if a Hero dies - the grave appears on his place and expires in 30 seconds.
If hero is resurrected while the grave stands - he will not respawn on the start location, else he'll respawn on the start location)))
I have a problem triggering it... I used an Countdown timer but when my hero dies - the game crashes, so I removed them and made it with Wait 30 seconds and check conditions... but I know that it is not correct so I'm asking you for help!
Here is how my trigger looks now:
-
Grave
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) belongs to an enemy of Neutral Hostile) Equal to True
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Unit - Create 1 Death Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
- Wait 30.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is alive) Equal to False
- ((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Then - Actions
- Hero - Instantly revive (Triggering unit) at (Player 1 (Red) start location), Show revival graphics
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is alive) Equal to False
- ((Triggering unit) belongs to an ally of Player 7 (Green)) Equal to True
-
Then - Actions
- Hero - Instantly revive (Triggering unit) at (Player 7 (Green) start location), Show revival graphics
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events