• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How do you make a revivable non-hero unit?

Status
Not open for further replies.
Level 10
Joined
Oct 10, 2020
Messages
293
How do I make a unit like a special kind or elite kind of unit like Slavemaster, Nazgrel or Captain but can revive like a hero but at the great hall? Trying to make one single Elite unit that is neither standard unit nor hero.
 
Last edited:
You could do this with triggers.

Detect when a player begins training the elite unit and limit it's training to 0. If they cancel the training then set it's limit to 1.
Create a second dummy version of the elite unit in the Object Editor, this one will have no gold cost/lumber cost and it's build time will act as it's revive time.
This dummy unit will be limited to 0 by default and become available when your elite unit dies.
Detect when a player begins training the dummy unit and limit it's training to 0. If they cancel the training then set it's limit to 1.
Once finished training, replace the dummy unit with the real elite unit.

Cons:
No scaling revive time/revive cost.
No instant revive at tavern.
Doesn't track items carried (could use a Hashtable/Hiding items to do this)
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top