Yes, I was just figuring that out last night... requirements could perhaps be more easily understood as
pre-requisites, so that regardless of how many dependencies are met (or even single "unlocking" factors, for that matter), until the
pre-requisite is fulfilled, nothing will be unlocked.
So following my earlier Sonic Pistol example, I could have this:
requires:
- STR_AQUA_PLASTICS
dependencies:
- STR_AQUATOID
- STR_GILLMAN
- STR_TASOTH
- STR_LOBSTERMAN
In this case, even if I captured and interrogated all 4 live aliens from each race (or even if I made any one of them independently 'unlock' STR_SONIC_PISTOL), I would still not get Sonic Pistol
until I researched Aqua Plastics.
Now, on to Facilities!
If I wanted to make Alien Containment require Alien Cryogenics and Alien Cloning (rather than being immediately available from the beginning), would this be enough?
- type: STR_ALIEN_CONTAINMENT
requires:
- STR_ALIEN_CRYOGENICS
- STR_ALIEN_CLONING
Would that prompt a "now we can build Alien Containment" pop-up alongside it's UFOpedia entry? Or do I need to do something else?
Also, I'm not sure if there's a little typo in the code below. I was going through Gauss Defenses as a guideline for the above example, and I came across this:
- type: STR_GAUSS_DEFENSES
requires:
- STR_GAUSS_DEFENSES
However, when I tried to look up STR_GAUSS_DEFENSES in research.rul, I didn't find it. Instead, I found this:
- name: STR_GAUSS_DEFENSE
cost: 510
points: 15
In other words, shouldn't Gauss Defenses require STR_GAUSS_
DEFENSE (without the
S at the end, as it appears in research.rul) rather than STR_GAUSS_
DEFENSES (with an
S at the end)? Or am I totally off?
Same applies to STR_PWT_
DEFENSES and STR_SONIC_
DEFENSES as well. Just want to be sure.
Thanks for all the help, everyone