Skip to content

AtMost Parameter

Jeremie Rossignol edited this page Nov 15, 2015 · 1 revision

The AtMost parameter will fail if more than the specified number of its child parameters are completed. Note that the correct way to use this is to set the completeInSequence to true and to place this parameter at the bottom of the appropriate group of parameters. Otherwise, the parameter will get marked as completed almost immediately, which hides the child parameters.

PARAMETER
{
    name = AtMost
    type = AtMost

    // The maximum number that can be completed.  Any more than this and
    // the contract fails.
    //
    // Type:      int
    // Required:  Yes
    //
    count = 1

    // The text to display.  Highly recommended not to use the default text, as
    // when the parameter is complete the text of the children disappears (and
    // the default text doesn't give the player a very good idea what the
    // parameter was about).
    //
    // Type:      string
    // Required:  No (defaulted)
    // Default:   Allow no more than <count> of the following
    // 
    //title =

    // Generally need completeInSequence set to true for this.
    completeInSequence = true

    PARAMETER
    {
        name = ReachSpace
        type = ReachSpace
    }

    PARAMETER
    {
        name = ReachState
        type = ReachState

        minSpeed = 1000
        maxSpeed = 5000
    }
}
Clone this wiki locally