Hero gain building ability

Randor244

Active Member
Reaction score
34
I'm working on an ability, cast by a building, that will make your main hero able to build just like a peasant/peon/and so on...

I have run into trouble though. I have this trigger:

Trigger:
  • Craftmanship
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (==) Hero Academy
      • (Ability being cast) Equal to (==) Craftmanship
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Race of Player 1 (Red)) Equal to (==) Human
        • Then - Actions
          • Unit - Add Build (Human) to hero1
        • Else - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Race of Player 1 (Red)) Equal to (==) Orc
            • Then - Actions
              • Unit - Add Build (Orc) to hero1
            • Else - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Race of Player 1 (Red)) Equal to (==) Undead
                • Then - Actions
                  • Unit - Add Build (Undead) to hero1
                • Else - Actions
                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Race of Player 1 (Red)) Equal to (==) Night Elf
                    • Then - Actions
                      • Unit - Add Build (Night Elf) to hero1
                    • Else - Actions
      • Unit - Remove Craftmanship from (Triggering unit)


But as you understand I need sometihing to tell the hero WHAT to build as well. I can't give him anything from the beginning (in the OE as Techtree - structures built) because it has to depend on the player's race.

Any suggestions?
 

Faust

You can change this now in User CP.
Reaction score
123
Can't add building options to the Build ability ingame.
 

Faust

You can change this now in User CP.
Reaction score
123
Make different build abilities for each race.
 

Randor244

Active Member
Reaction score
34
Um... there are different building abilities for each race. But they don't change what to build, just how to build.
 

Faust

You can change this now in User CP.
Reaction score
123
What to build is set in the unit editor.
Nowhere else.
So you have to copy all your heroes then.
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
you could try to use the build tiny town hall item abilitys
 

ianu74

New Member
Reaction score
8
How about adding the build ability in the WE, then at the start of the game disable construction of the building, until the player researches it.
Code:
Player - Make Farm Available for training/construction by (Owner of (Researching unit))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top