Skip to content

TechResearched Requirement

Jeremie Rossignol edited this page Aug 11, 2020 · 7 revisions

Requirement for having researched a technology.

REQUIREMENT
{
    name = TechResearched
    type = TechResearched

    // Use one of the two following methods to identifier the tech(s).

    // The technology that needs to have been researched.  Take special
    // note that this does not get validated - if you make a typo, the
    // requirement will always return false.
    //
    // Type:      string
    // Required:  No (multiples allowed)
    //
    tech = basicRocketry

    // A part that needs to have its technology unlocked.  Note that if the
    // player is playing with part unlocking, that that is only checking for
    // the tech being unlocked  (the player may have the technology, but not
    // the part).  Use PartUnlocked to check for part unlocking.
    //
    // Type:      AvailablePart
    // Required:  No (multiples allowed)
    //
    part = SmallGearBay

    // PartModule that needs to have its tech unlocked.
    //
    // Type:      string
    // Required:  No (multiples allowed)
    //
    partModule = ModuleReactionWheel

    // Type of PartModule that needs to have its tech unlocked.
    //
    // Type:      string
    // Required:  No (multiples allowed)
    // Values (defined in ContractDefs):
    //     Antenna
    //     Battery
    //     Dock
    //     Generator
    //     Grapple
    //     Wheel
    partModuleType = Antenna
    partModuleType = Generator
}
Clone this wiki locally