• 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.

How do you make a revivable non-hero unit?

Status
Not open for further replies.
Level 10
Joined
Oct 10, 2020
Messages
290
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:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
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

  • Elite Units.w3m
    18.1 KB · Views: 23
Last edited:
Status
Not open for further replies.
Top