I have a timer that is created for each unit when the player dies...However i have checked the trigger over and over again and cant seem to figure out how to fix it. If multple people die it creates multiple revive triggers even though it is show for specific player...Anyways heres an example of my trigger...
Event:
Unit - A unit owned by Player 1 (Red) Dies
Condition:
((Dying unit) is an illusion) Equal to False
((Triggering unit) is A Hero) Equal to True
(Player 1 (Red) slot status) Equal to Is playing
Action:
Wait 0.50 seconds
Game - Display to Player Group - Player 1 (Red) the text: (Your + (Soul Will Be Revived In + ((String((14 + (Hero level of (Dying unit))))) + Seconds.)))((Dying unit) has an item of type Ankh of Reincarnation) Equal to False
Countdown Timer - Create a timer window for ReviveTimer[1] with title ReviveTimerCountdown Timer - Show (Last created timer window) for Player 1 (Red)
Wait (14.00 + (Real((Hero level of (Dying unit))))) seconds
Countdown Timer - Destroy (Last created timer window)
Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Show revival graphics
Camera - Pan camera for Player 1 (Red) to (Position of (Reviving Hero)) over 0.50 seconds
Wait 0.10 seconds
Selection - Select (Triggering unit) for Player 1 (Red)
Timer P2
Events
Unit - A unit owned by Player 2 (Blue) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Countdown Timer - Create a timer window for P2TIMER with title Hero revive in
Countdown Timer - Start P2TIMER as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Hide (Last created timer window)
Countdown Timer - Show (Last created timer window) for (Owner of (Triggering unit))
Set P2WINDOW = (Last created timer window)
Wait 30.00 seconds
Countdown Timer - Destroy P2WINDOW
Arabidnun wrote:I have a timer that is created for each unit when the player dies...However i have checked the trigger over and over again and cant seem to figure out how to fix it. If multple people die it creates multiple revive triggers even though it is show for specific player...Anyways heres an example of my trigger...
Event:
Unit - A unit owned by Player 1 (Red) Dies
Condition:
((Triggering unit) is A Hero) Equal to True
(Player 1 (Red) slot status) Equal to Is playing
Action:
Wait 0.50 seconds Game - Display to Player Group - Player 1 (Red) the text: (Your + (Soul Will Be Revived In + ((String((14 + (Hero level of (Dying unit))))) + Seconds.)))((Dying unit) has an item of type Ankh of Reincarnation) Equal to False
Countdown Timer - Create a timer window for ReviveTimer[1] with title ReviveTimerCountdown Timer - Show (Last created timer window) for Player 1 (Red)
Wait (14.00 + (Real((Hero level of (Dying unit))))) seconds
Countdown Timer - Destroy (ReviveTimer[1])
Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Show revival graphics
Camera - Pan camera for Player 1 (Red) to (Position of (Reviving Hero)) over 0.50 seconds
Wait 0.10 seconds
Selection - Select (Triggering unit) for Player 1 (Red)
Any advice?
Look at the bold text, that would be better, I think....
Contact me on WC3 Killing_Spree22, I'm at US west!