• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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%
 
  • 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 64
Joined
Jan 18, 2005
Messages
27,287
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 24
Joined
Feb 27, 2019
Messages
833
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