reviving

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
  • light blue hero
    • Events
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
    • Actions
      • Countdown Timer - Start Timer_10 as a One-shot timer that will expire in 20.00 seconds
      • Set Timer_10 = (Last started timer)
      • Countdown Timer - Create a timer window for Timer_10 with title (Name of (Triggering player))
      • Set Timer_10_Window = (Last created timer window)
      • Countdown Timer - Show Timer_10_Window
      • Wait 20.00 seconds
      • Countdown Timer - Destroy Timer_10_Window
this is the timer for when a character dies
it starts the timer till a player revives but the timer doesnt go away once the timer is done
 
  • light blue hero
    • Events
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
    • Actions
      • Countdown Timer - Start Timer_10 as a One-shot timer that will expire in 20.00 seconds
      • Set Timer_10 = (Last started timer)
      • Countdown Timer - Create a timer window for Timer_10 with title (Name of (Triggering player))
      • Set Timer_10_Window = (Last created timer window)
      • Countdown Timer - Show Timer_10_Window
      • Wait until ((Remaining time for (Last started timer)) Equal to 0.00), checking every 1.00 seconds
      • Countdown Timer - Destroy Timer_10_Window
      • Hero - revive your hero and other things here
Using the "Wait for Condition" action will make it so you only need to make one trigger!
 
  • light blue hero
    • Events
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Player - Add ((Level of (Triggering unit)) x 10) to (Owner of (Killing unit)) Current gold
        • Else - Actions
      • Countdown Timer - Start Timer_10 as a One-shot timer that will expire in 20.00 seconds
      • Set Timer_10 = (Last started timer)
      • Countdown Timer - Create a timer window for Timer_10 with title (Name of (Triggering player))
      • Set Timer_10_Window = (Last created timer window)
      • Countdown Timer - Show Timer_10_Window
      • Wait 20.00 seconds
      • Countdown Timer - Hide Timer_10_Window
      • Countdown Timer - Destroy Timer_10_Window
      • Hero - Instantly revive (Triggering unit) at (Center of Region 018 <gen>), Hide revival graphics
So this should work for timer Rezzing and owner of killing unit to get 10x the hero lvl?
 
Status
Not open for further replies.
Back
Top