• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Adding buildings to specific constructor's build menu

Status
Not open for further replies.
Level 3
Joined
Dec 24, 2007
Messages
29
Basicly, what I want to do it make a builder that uses certain items (blueprints) to add buildings to his build menu. I've been working on this quite a long time but I haven't had any luck finding proper actions to get this done. And it only applies to the constructor who used the blueprint, no other constructor of his kind, even on the same team gets the building. Any help is appreciated.
 
Give the builder all the buildings that you can get off any blueprint in the Object Editor, then on Map Initialization in Triggers, disable his ability to build all those. Have another Trigger that says when he uses 'Blueprint - Castle', it re-enables him to build that blueprint.
 
Adding abilities ?

  • Untitled Trigger 004
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to itemTypeVariable[Integer A]
            • Then - Actions
              • Unit - Add ability[Integer A] to (Triggering unit)
            • Else - Actions

You should know what the other trigger (declaring items/abilities) needs to be since I helped you with this kind of stuff before. Didn't I ?
 
I tried with adding abilities but there isn't anything pertaining to buildings with those.
 
Status
Not open for further replies.
Back
Top