Skip to content

HasCrew Parameter

Jeremie Rossignol edited this page May 26, 2016 · 9 revisions

Parameter to indicate that the Vessel in question must have a certain number of crew members (or must have fewer than a certain number).

PARAMETER
{
    name = HasCrew
    type = HasCrew

    // The type of trait required.  Valid values are:
    //
    // Type:      string
    // Required:  No
    // Values (for stock KSP):
    //     Pilot
    //     Engineer
    //     Scientist
    //
    trait = Pilot

    // Minimum and maximum experience level required.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   0 (minExperience)
    //            5 (maxExperience)
    //
    minExperience = 1
    maxExperience = 2

    // Minimum and maximum count of matching crew required.
    //
    // Type:      int
    // Required:  No (defaulted)
    // Default:   0 (minCrew)
    //            int.MaxValue (maxCrew)
    //
    minCrew = 1
    maxCrew = 10

    // Specific Kerbal(s) that must be on board.  Can be specified multiple
    // times, but cannot be used with the other attributes on this parameter.
    //
    // Type:      Kerbal
    // Required:  No (multiples allowed)
    //
    kerbal = Jebediah Kerman
    kerbal = Bob Kerman

    // Kerbals that are excluded from the count.
    //
    // Type:      Kerbal
    // Required:  No (multiples allowed)
    //
    excludeKerbal = Bill Kerman

    // Text to use for the parameter
    //
    // Type:      string
    // Required:  No (defaulted)
    // Default (maxCrew = 0): Crew: Unmanned
    // Default (maxCrew: int.MAXVALUE) = Crew: At least <minCrew> Kerbals
    // Default (minCrew: 0) = Crew: At most <maxCrew> Kerbals
    // Default (minCrew: maxCrew) = Crew: Exactly <minCrew> Kerbals
    // Default (else): Crew: Between <minCrew> and <maxCrew> Kerbals
    //
    //title =
}
Clone this wiki locally