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!
hi agein...
new question...
how to make a hero ability to build certin stuff?
say level 1 skill lets you build barracks
level 2 lets you build armory too
level 3 lets you build town halls too
I think I have the answer to your question. First you add all things you want to build with this unit to this unit in the unit editor. Then you create a trigger which make the buildings unaviable to build. For example like this:
Initialization
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Player - Make Rathaus Unavailable for training/construction by (Player((Integer A)))
Player - Make Hof Unavailable for training/construction by (Player((Integer A)))
The loop make that by all player between 1 and 12 this buildings are unavailable.
After this trigger you have to create a second trigger which makes the buildings again available. So that you can build them if your skill of your ability is higher. For example like this:
Skill
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Aas-Schwarm
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Aas-Schwarm for (Triggering unit)) Equal to 1
Then - Actions
Player - Make Rathaus Available for training/construction by (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Aas-Schwarm for (Triggering unit)) Equal to 2
Then - Actions
Player - Make Hof Available for training/construction by (Owner of (Triggering unit))
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.