aussj4link
New Member
- Reaction score
- 3
:banghead:
I'm having an issue with a timer doing some weird stuff. I'm still kinda new to the editor and I just kinda picked it up recently and started working on a new map.
In this map I have specific heroes that need to be revived after death when a timer that (preferably) only shows for the player who's hero died. This is whats odd when me an a friend test it, it works great if only I die, however if i should die then while the timer is going my friend should die, we get 2 timers that both get reset.
I made 2 triggers that I thought would work for this but obviously it isn't and I'm not sure why.
These triggers continue until all players have been covered.
Any help would be much appreciated and like I said I'm still a noob at the editor so any obvious errors I made arent so obvious to me lol.
I'm having an issue with a timer doing some weird stuff. I'm still kinda new to the editor and I just kinda picked it up recently and started working on a new map.
In this map I have specific heroes that need to be revived after death when a timer that (preferably) only shows for the player who's hero died. This is whats odd when me an a friend test it, it works great if only I die, however if i should die then while the timer is going my friend should die, we get 2 timers that both get reset.
I made 2 triggers that I thought would work for this but obviously it isn't and I'm not sure why.
Trigger:
- Timer
- Events
- Unit - A unit Dies
- Conditions
- ((Unit-type of (Triggering unit)) Equal to Jaina (Elite)) or (((Unit-type of (Triggering unit)) Equal to Sylvanas Windrunner (Elite)) or ((Unit-type of (Triggering unit)) Equal to Uber Warden))
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
- Then - Actions
- Set RedDead = (Triggering unit)
- Set RedHero = 1
- Countdown Timer - Start Revive as a One-shot timer that will expire in 40.00 seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Revive in:
- Countdown Timer - Show (Last created timer window) for (Owner of (Triggering unit))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- Then - Actions
- Set BlueDead = (Triggering unit)
- Set BlueHero = 1
- Countdown Timer - Start Revive as a One-shot timer that will expire in 40.00 seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Revive in:
- Countdown Timer - Show (Last created timer window) for (Owner of (Triggering unit))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Rez
- Events
- Time - Revive expires
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- RedHero Equal to 1
- Then - Actions
- Countdown Timer - Destroy (Last created timer window)
- Hero - Instantly revive RedDead at (Player 1 (Red) start location), Show revival graphics
- Set RedHero = 0
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- BlueHero Equal to 1
- Then - Actions
- Countdown Timer - Destroy (Last created timer window)
- Hero - Instantly revive BlueDead at (Player 2 (Blue) start location), Show revival graphics
- Set BlueHero = 0
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
These triggers continue until all players have been covered.
Any help would be much appreciated and like I said I'm still a noob at the editor so any obvious errors I made arent so obvious to me lol.