• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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