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!
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
You need to use Triggering Unit instead of Dying unit/Reviving Hero. Also, you're leaking Points, but if you don't care about memory leaks then don't worry about it.
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
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.