• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

How do you make a revivable non-hero unit?

Status
Not open for further replies.
Level 9
Joined
Oct 10, 2020
Messages
261
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 58
Joined
Aug 10, 2018
Messages
5,849
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: 16
Last edited:
Status
Not open for further replies.
Top