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

hero-ability build?

Status
Not open for further replies.
Level 9
Joined
Jul 26, 2005
Messages
553
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

exsample naturally...
 
Level 14
Joined
Jan 15, 2007
Messages
349
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))
        • Else - Actions
I hope I helped you.
 
Level 9
Joined
Jul 26, 2005
Messages
553
more rep for you...

damn...it tells me to spread some rep before giving you more...i will give you once i can...

you are very handy you know that?

one question: the ability should be a passive dummy right?
 
Status
Not open for further replies.
Top