• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Add unit to building with trigger?

Status
Not open for further replies.
Hmm well, what I want to do more specifically, is add a unit to the altar when it dies so it can be revived. I could add it manually in object editor, but I'd like it to be automatically available for revival/training, like a regular hero.
Replacing the building doesn't do that unfortunately. It doesn't seem to be entirely possible the way I want it :p
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
You can make your building be able to make EVERY unit.

Then you make all units have a button position of (-1, -1) so they will not be shown.
Then you make abilities based of Charge Gold and Lumber and create all the tooltips and stuff for your units.
Then you add/remove those abilities from the structure.

Then comes the trigger part where you link your abilities to your unit types.
So when you start channeling one of those abilities, you then train the respective unit.

There are features like:
- Able to add/remove units from your available units.
- Make abilities multiple levels thus updating tooltips for stuff. (Per building individually.)
- Make units have a relative cost (also based on ability levels).
- Put unit creation chart inside a spellbook.
- And a few more I can't recall.

I thought about making a public resource that does this... however, I havent actually got to the point of making it :D
 
Status
Not open for further replies.
Top