Hello internet friends,
Does anybody have an idea on how to make either/or research elements? You know, like two items are available to be researched, and when you complete one, the other one is no longer available.
I tried this as a test, but it super didn’t work:
base_research = nil
base_research = {
{
Name = "ProximitySensor",
RequiredResearch = "",
RequiredSubSystems = "Research",
Cost = 250,
Time = 40,
DisplayedName = "$11552",
ShortDisplayedName = "$11552",
DisplayPriority = 51,
Description = "$11553",
Icon = Icon_Build,
TargetName = "Tai_ProximitySensor",
research_restrict = "SensorArray",
},
{
Name = "SensorArray",
RequiredResearch = "",
RequiredSubSystems = "Research",
Cost = 350,
Time = 80,
DisplayedName = "$11554",
ShortDisplayedName = "$11554",
DisplayPriority = 52,
Description = "$11555",
Icon = Icon_Build,
TargetName = "Tai_SensorArray",
},
{
Name = "GravityGenerator",
RequiredResearch = "CapitalShipDrive",
RequiredSubSystems = "Research",
Cost = 500,
Time = 100,
DisplayedName = "$11556",
ShortDisplayedName = "$11556",
DisplayPriority = 53,
Description = "$11557",
Icon = Icon_Build,
TargetName = "Tai_GravWellGenerator",
},
If you know of a mod that has something like this in there let me know, and I could pick that apart as well. Thanks!