• 🏆 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!

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 31
Joined
Aug 6, 2015
Messages
639
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