• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Countdown timer

Status
Not open for further replies.
Level 3
Joined
Dec 3, 2009
Messages
39
How do you make it so that a hero that has died comes back to the game but only after 3 mins (which is shown in timer window) since it had died. But if it died again the timer window becomes visible again and starts from counting down from 3 min again. Also when the hero dies its gold is set to 750. This works but when a Hero gets revived the time window stays there staying at 0 and then if the same unit dies again the same window comes up but set at 3min and the one that had finished is still there.

This is what i have
  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Sea Hunter
    • Actions
      • Player - Set (Triggering player) Current gold to 750
      • Countdown Timer - Start Timer_2 as a One-shot timer that will expire in 180.00 seconds
      • Countdown Timer - Create a timer window for Timer_2 with title Sea Hunter
      • Countdown Timer - Show Timer_window2
      • Wait 180.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of Region 003 <gen>), Hide revival graphics
      • Countdown Timer - Destroy Timer_window2
ok i got the timer to work here it is
  • Revive timer Sea Hunter
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Sea Hunter
    • Actions
      • Player - Set (Triggering player) Current gold to 750
      • Countdown Timer - Start Timer_2 as a One-shot timer that will expire in 180.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Sea Hunter
      • Set Timer_window2 = (Last created timer window)
      • Countdown Timer - Show Timer_window2
      • Wait 180.00 seconds
      • Hero - Instantly revive (Dying unit) at (Center of Region 003 <gen>), Hide revival graphics
      • Countdown Timer - Destroy Timer_window2
My question now is how do I make it so that the timers don't go all the way across the screen like at most i might have 5 timer windows up(for hero revival) how do i make them stack underneath each other instead of going across the screen.
 
Last edited:
Status
Not open for further replies.
Top