Template:Calculator/OptionCost/doc

From Fallen London Wiki

Returns the average number of actions spent, and any other quality, item, or menace gains or losses if you play the option until a success

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle name

Name of the calculator on the page

Stringsuggested
IDid

Calculator ID, use if you are importing multiple of these calculators on the same page

Templatesuggested
Actionsact actions actionCost

Number of actions the storylet/card costs. Defaults to 1

Numberoptional
Hiddenhidden

This will hide any fields of the calculator pertaining to the action itself, useful for using this as a template

Auto value
true
Booleansuggested
Second Chance Typectype chanceType

The name of the second chances the option permits.

Example
Sudden Insights, Hard-Earned Lessons
Stringoptional
Difficultydiff difficulty

Challenge difficulty (broad). Unfortunately narrow difficulties are not supported.

Numberrequired
Success Qualitiessucs successQualities

Number of qualities impacted by success. For example, if success gains 50 whispered hints and 2 CP nightmares, this would be 2.

Numberrequired
Success Quality 1squal1 successQuality1

Name of the first quality gained on success, in the original example this would be Whispered Hints.

Stringoptional
Success Gain 1snum1 successNumber1 sgain1 successGain1

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5. In the original example, it would be 50.

Numberoptional
Success Quality 2squal2 successQuality2

Name of the second quality gained on success, in the original example this would be CP Nightmares.

Stringoptional
Success Gain 2snum2 successNumber2 sgain2 successGain2

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5. In the original example, it would be 3.

Numberoptional
Success Quality 3squal3 successQuality3

Name of the third quality gained on success.

Stringoptional
Success Gain 3snum3 successNumber3 sgain3 successGain3

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Success Quality 4squal4 successQuality4

Name of the fourth quality gained on success.

Stringoptional
Success Gain 4snum4 successNumber4 sgain4 successGain4

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Success Quality 5squal5 successQuality5

Name of the fifth quality gained on success.

Stringoptional
Success Gain 5snum5 successNumber5 sgain5 successGain5

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Success Quality 6squal6 successQuality6

Name of the sixth quality gained on success.

Stringoptional
Success Gain 6snum6 successNumber6 sgain6 successGain6

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Failure Qualitiesfals Failure Qualities

Number of qualities impacted by failure. For example, if failure loses 10 whispered hints, 5 rostygold, and gains 1 cp wounds, this would be 3

Numberrequired
Success Quality 1qual1 failureQuality1

Name of the first quality gained on failure, in the original example this would be Whispered Hints.

Stringoptional
Success Gain 1num1 failureNumber1 sgain1 failureGain1

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5. In the original example, it would be -10.

Numberoptional
Success Quality 2qual2 failureQuality2

Name of the second quality gained on failure, in the original example this would be Rostygold.

Stringoptional
Success Gain 2num2 failureNumber2 sgain2 failureGain2

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5. In the original example, it would be -5.

Numberoptional
Failure Quality 3qual3 failureQuality3

Name of the third quality gained on failure, in the original example this would be CP Wounds.

Stringoptional
Failure Gain 3num3 failureNumber3 sgain3 failureGain3

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5. In the original example, it would be 1.

Numberoptional
Failure Quality 4qual4 failureQuality4

Name of the fourth quality gained on failure.

Stringoptional
Failure Gain 4num4 failureNumber4 sgain4 failureGain4

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Failure Quality 5qual5 failureQuality5

Name of the fifth quality gained on failure.

Stringoptional
Failure Gain 5num5 failureNumber5 sgain5 failureGain5

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional
Failure Quality 6qual6 failureQuality6

Name of the sixth quality gained on failure.

Stringoptional
Failure Gain 6num6 failureNumber6 sgain6 failureGain6

Number of above quality gained. Can be negative. Can be a decimal, i.e. if something gives 20-25 items, it would be 22.5.

Numberoptional