• 🏆 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!

hero respawn

Status
Not open for further replies.
Level 12
Joined
Mar 13, 2020
Messages
421
  • Revive1
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to Wahr
    • Actions
      • Countdown Timer - Start ReviveTimer1 as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for ReviveTimer1 with title ((Name of (Owner of (Dying unit))) + Revive)
      • Set VariableSet ReviveWindow[1] = (Last created timer window)
      • Wait 30.00 seconds
      • Countdown Timer - Destroy ReviveWindow[1]
      • Countdown Timer - Hide ReviveWindow[1]
      • Camera - Apply Camera 002 <gen> for (Owner of (Dying unit)) over 0.00 seconds with ease in time: 0.00 seconds, ease out time: 0.00 seconds, and smooth factor: 0.00
      • Hero - Instantly revive (Dying unit) at (Center of Base <gen>), Show revival graphics
      • Unit - Set mana of (Reviving Hero) to 100.00%
 
Level 7
Joined
Sep 19, 2020
Messages
190
  • Revive1
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to Wahr
    • Actions
      • Countdown Timer - Start ReviveTimer1 as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for ReviveTimer1 with title ((Name of (Owner of (Dying unit))) + Revive)
      • Set VariableSet ReviveWindow[1] = (Last created timer window)
      • Wait 30.00 seconds
      • Countdown Timer - Destroy ReviveWindow[1]
      • Countdown Timer - Hide ReviveWindow[1]
      • Camera - Apply Camera 002 <gen> for (Owner of (Dying unit)) over 0.00 seconds with ease in time: 0.00 seconds, ease out time: 0.00 seconds, and smooth factor: 0.00
      • Hero - Instantly revive (Dying unit) at (Center of Base <gen>), Show revival graphics
      • Unit - Set mana of (Reviving Hero) to 100.00%
It's work like DotA map?
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,180
It's work like DotA map?
No as DotA Allstars adds a revive time penalty for every death. I think it was 5 seconds last time I played. This would need to be tracked with variables, possibly on a per-player basis such as by using an array to map player slot number to their revive time or additional revive time. This can be incremented on every death.
 
Last edited:
Level 19
Joined
Feb 27, 2019
Messages
563
Isnt it just based on Hero level? Or both?

Start timer over 5 + (Hero level of (Triggering unit) x 5) + (3 x penalty(Player number of (Triggering player) seconds.)
If penalty(Player number of (Triggering player) less than 10
Then
Set penalty(Player number of (Triggering player)) = penalty(Player number of (Triggering player)) + 1
Else

To save penalty make a variable integer array for each player (if they only have 1 Hero)

You can use "Aritmathic" or whatever its called to add, subract and multiply values.
 
Status
Not open for further replies.
Top