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

Different techtree-requirement "options"

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
Dear Hive,

is there a way to make a techtree-requirement working as an "or"-condition. For example: A unit needs 2 buildings of type a and 1 building of type b OR c OR d to be enabled for production (the same for spells: a spell needs building a and building b or c or d to be enabled for casting).

I appreciate all support, maybe someone has an idea! :)
 
Level 37
Joined
Aug 6, 2015
Messages
786
Dear Hive,

is there a way to make a techtree-requirement working as an "or"-condition. For example: A unit needs 2 buildings of type a and 1 building of type b OR c OR d to be enabled for production (the same for spells: a spell needs building a and building b or c or d to be enabled for casting).

I appreciate all support, maybe someone has an idea! :)
Could be done this way.
Create a dummy upgrade with the name of : Need a or b.
Create a real bulding A
Create a real building B
(which a worker can build)

Create a trigger.
When the worker finished Building A or B
Set level of research of : Need a or b to 1.

also create a second triger
Which checks if player has more then 1 type of building A or B , or set the research to level 0.
 
Level 7
Joined
May 30, 2018
Messages
290
Could be done this way.
Create a dummy upgrade with the name of : Need a or b.
Create a real bulding A
Create a real building B
(which a worker can build)

Create a trigger.
When the worker finished Building A or B
Set level of research of : Need a or b to 1.

also create a second triger
Which checks if player has more then 1 type of building A or B , or set the research to level 0.
That sounds reasonable! Will give it a try :D
 
Status
Not open for further replies.
Top