Template:Calculator/OptionCost

From Fallen London Wiki
name = Average Costs per Success
module = ActionCost
modulefunc = calcCost
form = ActionCostParam
result = ActionCostResult
suggestns = 0
param = act | Action Cost | 1 | int
param = stat | Stat Value | 100 | int
param = chance | Second Chances? | DISABLED | check
param = ctype | Second Chance Name |  | string
param = diff | Difficulty | 100 | int
param = sucs | SuccessParams | 0 | buttonselect | 0,1,2,3,4,5,6 | 1=squal1,snum1; 2=squal1,snum1,squal2,snum2; 3=squal1,snum1,squal2,snum2,squal3,snum3; 4=squal1,snum1,squal2,snum2,squal3,snum3,squal4,snum4; 5=squal1,snum1,squal2,snum2,squal3,snum3,squal4,snum4,squal5,snum5; 6=squal1,snum1,squal2,snum2,squal3,snum3,squal4,snum4,squal5,snum5,squal6,snum6
param = squal1 | Quality/Item/Menace Name 1 |  | string
param =  snum1 | Quality/Item/Menace Gain 1 |  | number | -Infinity - Infinity
param = squal2 | Quality/Item/Menace Name 2 |  | string
param =  snum2 | Quality/Item/Menace Gain 2 |  | number | -Infinity - Infinity
param = squal3 | Quality/Item/Menace Name 3 |  | string
param =  snum3 | Quality/Item/Menace Gain 3 |  | number | -Infinity - Infinity
param = squal4 | Quality/Item/Menace Name 4 |  | string
param =  snum4 | Quality/Item/Menace Gain 4 |  | number | -Infinity - Infinity
param = squal5 | Quality/Item/Menace Name 5 |  | string
param =  snum5 | Quality/Item/Menace Gain 5 |  | number | -Infinity - Infinity
param = squal6 | Quality/Item/Menace Name 6 |  | string
param =  snum6 | Quality/Item/Menace Gain 6 |  | number | -Infinity - Infinity
param = fals | FailureParams | 0 | buttonselect | 0,1,2,3,4,5,6 | 1=qual1,num1; 2=qual1,num1,qual2,num2; 3=qual1,num1,qual2,num2,qual3,num3; 4=qual1,num1,qual2,num2,qual3,num3,qual4,num4; 5=qual1,num1,qual2,num2,qual3,num3,qual4,num4,qual5,num5; 6=qual1,num1,qual2,num2,qual3,num3,qual4,num4,qual5,num5,qual6,num6
param =  qual1 | Quality/Item/Menace Name 1 |  | string
param =   num1 | Quality/Item/Menace Gain 1 |  | number | -Infinity - Infinity
param =  qual2 | Quality/Item/Menace Name 2 |  | string
param =   num2 | Quality/Item/Menace Gain 2 |  | number | -Infinity - Infinity
param =  qual3 | Quality/Item/Menace Name 3 |  | string
param =   num3 | Quality/Item/Menace Gain 3 |  | number | -Infinity - Infinity
param =  qual4 | Quality/Item/Menace Name 4 |  | string
param =   num4 | Quality/Item/Menace Gain 4 |  | number | -Infinity - Infinity
param =  qual5 | Quality/Item/Menace Name 5 |  | string
param =   num5 | Quality/Item/Menace Gain 5 |  | number | -Infinity - Infinity
param =  qual6 | Quality/Item/Menace Name 6 |  | string
param =   num6 | Quality/Item/Menace Gain 6 |  | number | -Infinity - Infinity
Loading...
Template documentation (for the above template, sometimes hidden or invisible)

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