Techs - "or" conditional requirements

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Post Reply
arj.smn.cnt
Posts: 5
Joined: Sat Nov 23, 2024 1:24 pm

Techs - "or" conditional requirements

Post by arj.smn.cnt »

Hello all,

I'm trying to simulate civ4 tech tree, where a certain Tech requires A and (B or C)
Example: https://civilization.fandom.com/wiki/Pottery_(Civ4)

I understand this is not possible yet, but are there any plans for this to be available on future releases?

Currently i tried to simulate this by having two Pottery techs with the same name but different reqs, like this:


[advance_pottery_with_agriculture]
name = _("Pottery")
req1 = "The Wheel"
req2 = "Agriculture"
flags = ""
graphic = "a.pottery"
graphic_alt = "-"
helptext = _("Improves commerce and growth. It allows your Workers to build Cottage improvements, which generate increasing amounts of commerce the longer they are worked. Pottery also enables the Granary building, which makes grow faster. ")
cost=80

[advance_pottery_with_Fishing]
name = _("Pottery")
req1 = "The Wheel"
req2 = "Fishing"
flags = ""
graphic = "a.pottery"
graphic_alt = "-"
helptext = _("Improves commerce and growth. It allows your Workers to build Cottage improvements, which generate increasing amounts of commerce the longer they are worked. Pottery also enables the Granary building, which makes grow faster. ")
cost=80

But unfortunately the game interprets this as 2 different techs and techs requiring "Pottery" only connect to one of them, so no joy.

https://ibb.co/2zVs0kw

Thank you in advance!
Post Reply