• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Hero 'Build' Ability Trouble

Status
Not open for further replies.
Level 4
Joined
Jun 5, 2007
Messages
65
I'm making a map in which one of the heroes I want to be a builder. However, I have run into a few problems whilst trying to figure out how exactly to make him, well, build.

My first idea was to use the spellbook ability, make it a hero ability, and change the icon, etc. For the spells inside of it, I used 'build tiny' whatever and changed what it built. Then for each level of the 'builder's manual' I would make different abilities based off of 'build tiny' whatever and put them in the spellbook. However, this didn't work. I guess because the 'build tiny' abilities are all on the same order string or something. Whatever it is, it made it so that every ability based off of them built the same thing, not different things.

My second plan was just to give the builder the ability to build structures, and put in the right structures. However, I wanted the structures to be an ability. For example, you level up, learn an ability, and then new structures will be available to build. However, I wasn't able to find a way to modify what structures could be built by a certain unit. I tried looking through all the 'action' triggers and none of those had anything.

Any help would be greatly appreciated.
-Z
 
Level 4
Joined
Jun 5, 2007
Messages
65
I know how to change the structures built in the object editor, I just don't know whether or not there is a way to change what structures a unit can build via triggers or JASS after the game has already started.
 
Level 9
Joined
Jul 27, 2006
Messages
652
Well your spellbook ability would work quite well for what your doing, all you have to do is change the order ids of each ability.
You see, when you build something the order id is the name of the base unit of the building. Eg you may have a custom townhall but the order id would be 'townhall'.
So simply go through all your abilites and change the order ids to different buildings.
 
Status
Not open for further replies.
Top