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!
Hello guys, Im on to make an RPG Map ...
But how do i make a Respawn timer, and how to set region and so?...
My Primary Question, How to get a hero respawn out for Altar?
You really need to learn something first.
Respawn: Make a region. By making it.
Then create an event wich goes 'Generic unit event' And then 'A unit dies'
Condition: 'Unit type' and then 'Unit type of (triggering unit) equal to YOURHERO'
Action: 'Hero' Revive (triggering unit) at center of YOURREGION
2. Unit Array (length = number of players)
Important: Set this variable to the hero the players chose. For EVERY player.
3. CountdownTimer Array (lenght = number of players)
And this 2 triggers:
Respawn
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to (PlayerHero[Player number of (Owner of (Triggering Unit))])
Actions
Countdown Timer - Start CountDownTimer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 30.00 seconds
This one starts the timer for a player when his hero dies.
You can set the time for whatever you want. (maybe Level * 10 or something)
Respawn Timer End
Events
Time - CountDownTimer[1] expires
Conditions
Actions
Hero - Instantly revive PlayerHero[1] at (YourArea), Show revival graphics
This one will revive the Hero when the timer expires. You need 1 of this for every player. Just change the array index (the number in the []) in each one.
I used it and it worked. In this case Owner of triggering unit equal to triggering player.
Strange, but there isn't not many mapmakers who know it. Or I had a bug? Are you sure it didn't work in your map?
Note: It don't work with event like Unit Enters/Leaves region.
But you can use smth like:
Events
Unit - A unit Dies
Conditions
(Triggering player) Equal to Player 1 (Red)
Actions
Hero - Add -5 experience to Hero[(Player number of (Triggering player))], Hide level-up graphics
I don't think it's a question of working or not working...
I use owner of triggering unit because when looking at that trigger later I know which player is meant...
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.