[Trigger] What's wrong with this?

Status
Not open for further replies.
Level 15
Joined
Jul 19, 2007
Messages
855
I'm trying to make a timer that shows long time it is for the player Hero to revive but the timer window is shown for all other players too and I want it to only be shown for the player with the dying Hero. I can't see what's wrong. Plz help!
  • Events
    • Unit - A unit owned by Player 1 (Red) Dies
  • Conditions
    • ((Triggering unit) is A Hero) Equal to True
  • Actions
    • Game - Display to Player Group - Player 1 (Red) the text: DON´T LEAVE! Revi...
    • Countdown Timer - Start death[1] as a One-shot timer that will expire in 50.00 seconds
    • Countdown Timer - Create a timer window for (Last started timer) with title Reviving Hero in...
    • Set deathtimer[1] = (Last created timer window)
    • Countdown Timer - Show deathtimer[1] for Player 1 (Red)
    • Wait 50.00 seconds
    • Countdown Timer - Destroy deathtimer[1]
    • Hero - Instantly revive (Triggering unit) at (Center of Revive Hero Good <gen>), Show revival graphics
    • Camera - Pan camera for Player 1 (Red) to (Center of Revive Hero Good <gen>) over 0.50 seconds
 
Level 6
Joined
Oct 31, 2008
Messages
229
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer A) Not equal to (Player number of (Owner of (Triggering unit)))
        • Then - Actions
          • Countdown Timer - Hide (Last created timer window) for (Player((Integer A)))
        • Else - Actions
Might need to modify it

also if it works, click on my sig for a free cookie
 
Level 8
Joined
Aug 13, 2009
Messages
466
You might be able to use GetLocalPlayer() to do it to just one player straight away - I don't know if this would cause a desync or not, so beware! Might be more efficient than other ways.
 
Status
Not open for further replies.
Top