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

Construction Requirements Help!

Status
Not open for further replies.
Level 6
Joined
Mar 6, 2006
Messages
169
Hello!

I can't come up with a proper way to describe my issue, so I'll just type what I want, and what I can't get working.


Hero Unit who can construct buildings, and he has an ability called Engineering.
I want the various levels of Engineering to unlock buildings that the hero can build.

How do I do this? I can't seem to set the Buildings to require an ability level, only upgrades.

And I can't figure out how to connect an ability to an upgrade.
I know it's doable, I just not clever enough. Hehe :p
 
Well, you need to make custom upgrades, copy paste one and use a random effect, which will not affect your units. To do that, go to your unit and check if the field "Techtree - Upgrades used" have the custom upgrade in it.
Then,
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Upgrade[3] = (Your upgrade 1)
    • Set Upgrade[4] = (Your upgrade 2)
    • Set Upgrade[5] = (Your upgrade 3)
    • Set Unit[3] = (Your building 1)
    • Set Unit[4] = (Your building 2)
    • Set Unit[5] = (Your building 3)
  • Trigger1
  • Events
    • Unit - A unit gains a level
  • Conditions
  • Actions
    • Player - Set level of Upgrade[(1 + ((Level of (Triggering unit)))] to 1 for (Owner of (Triggering unit))
    • Player - Make Unit[(1 + ((Level of (Triggering unit)))] Available for training/construction by (Owner of (Triggering unit))
"Unit" variable is of "Unit-type", while "Upgrade" variable is of type "Upgrade".
 
Level 6
Joined
Mar 6, 2006
Messages
169
I can't find the "Upgrade" variable type for
(Set Upgrade[3] = (Your upgrade 1))

Also. does the number 3 next to "Upgrade[3]" represent the level of the upgrade?



Let's see if you got what I mean.

Hero gains Engineering Ability Level 1, this unlocks Tower Level 1 that he can now construct as would he been a peasant/peon.

When it reaches level 2, he unlocks the upgrade for Tower level 1 so that it may upgrade to level 2.

Edit: Hero has other abilities aswell, I don't want him to gain an upgrade every time he levels up, only when he levels up his Engineering skill.

Edit 2: Forgot to add something in the trigger.


Quick question, doesn't this trigger work?
 

Attachments

  • Example.JPG
    Example.JPG
    15 KB · Views: 41
Last edited:
Status
Not open for further replies.
Top