• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Timer problem?

Status
Not open for further replies.
Level 15
Joined
Sep 27, 2009
Messages
669
Hi guys, i'm creating an orpg map and i need respawn timer system...
And here's my respawn system:
THIS IS RESPAWN SET TRIGGER
  • Village
    • Events
      • Unit - A unit enters Inn 1 <gen>
    • Conditions
    • Actions
      • Set Res[(Player number of (Owner of (Triggering unit)))] = (Center of Inn 1 <gen>)
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: Respawn Point Saved...
AND THIS IS RESPAWN:
  • Unit Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: Your hero will be r...
      • Wait 40.00 seconds
      • Hero - Instantly revive (Dying unit) at Res[(Player number of (Owner of (Triggering unit)))], Show revival graphics
      • Camera - Pan camera for (Owner of (Triggering unit)) to Res[(Player number of (Owner of (Triggering unit)))] over 0.00 seconds
How can i make that when hero dies, timer activates (called: Owner of dying unit's hero respawn in:)....
It should elapse in 40 seconds and then it dissapear, It should work for all dead heroes.. ?
 
Level 13
Joined
Sep 13, 2010
Messages
550
  • Countdown Timer - Create a timer window for TIMER[(Player number of (Owner of (Triggering unit)))] with title ((Name of (Owner of (Triggering unit))) + will respawn in:)
  • Countdown Timer - Start TIMER[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 40.00 seconds
  • Set TimerWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
  • Wait 40.00 game-time seconds
  • Countdown Timer - Destroy TimerWindow[(Player number of (Owner of (Triggering unit)))]
if that is you want
 
Status
Not open for further replies.
Top