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

Techtree Requirement for Sold Unit

Status
Not open for further replies.
Level 4
Joined
Apr 16, 2012
Messages
83
I have a unit that sells another unit (it's like an upgrade to a new unit, the original unit is removed by trigger after its sold). The problem is I want selling the unit to require a technology or upgrade before it's able to be sold. Putting this upgrade in 'Techtree - Requirements' in the Object Editor field for the new unit doesn't work however, you are still able to buy it.

What is the easiest way around this? Keep in mind that I have many units that do this and many techtree requirements for each unit.
 
Level 3
Joined
Jul 15, 2014
Messages
39
How does the unit sell? By selecting other unit with an ability?
You want the ability to be gray inside unit until its player gets technology?
Try to set these 2 fields inside the ability:
1) Techtree requirments = the needed tecmology
2) Techtree - check dependencies = true
 
Status
Not open for further replies.
Top