-
Notifications
You must be signed in to change notification settings - Fork 67
HasResource Parameter
Jeremie Rossignol edited this page Jul 25, 2015
·
6 revisions
Parameter to indicate that the Vessel in question must have a certain quantity of a certain resource (or must have fewer than a certain number). The HasResource parameter can be used in two different modes - simple and extended. In the simple mode, simply provide the parameters to filter on, as in the following example:
PARAMETER { name = HasResource type = HasResource // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource: <resource>: <quantity_description> //title = }
For the extended mode, the above parameters may instead be placed inside RESOURCE blocks (which can be repeated):
PARAMETER { name = HasResource type = HasResource RESOURCE { // The name of the resource to check for. // // Type: Resource // Required: Yes // resource = LiquidFuel // Minimum and maximum quantity of the resource required. // // Type: double // Required: No (defaulted) // Default: 0.01 (minQuantity) // double.MaxValue (maxQuantity) // minQuantity = 10.0 maxQuantity = 1000.0 } RESOURCE { resource = Oxidizer minQuantity = 10.0 maxQuantity = 1000.0 } // Text to use for the parameter // // Type: string // Required: No (defaulted) // Default: Resource: <resource>: <quantity_description> //title = }
- Vessel Parameters
- VesselParameterGroup
- Vessel Attributes
- Vessel State
- Vessel History
- RemoteTech
- Kerbal Parameters
- Progression Parameters
- Negative Parameters
- Set Parameters
- Planetary Parameters
- Miscellaneous Parameters
Contract Configurator
Configuration File Syntax
Extending Contract Configurator