Template:Calculator/OptionCost
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
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title name | Name of the calculator on the page | String | suggested |
ID | id | Calculator ID, use if you are importing multiple of these calculators on the same page | Template | suggested |
Actions | act actions actionCost | Number of actions the storylet/card costs. Defaults to 1 | Number | optional |
Hidden | hidden | This will hide any fields of the calculator pertaining to the action itself, useful for using this as a template
| Boolean | suggested |
Second Chance Type | ctype chanceType | The name of the second chances the option permits.
| String | optional |
Difficulty | diff difficulty | Challenge difficulty (broad). Unfortunately narrow difficulties are not supported. | Number | required |
Success Qualities | sucs successQualities | Number of qualities impacted by success. For example, if success gains 50 whispered hints and 2 CP nightmares, this would be 2. | Number | required |
Success Quality 1 | squal1 successQuality1 | Name of the first quality gained on success, in the original example this would be Whispered Hints. | String | optional |
Success Gain 1 | snum1 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. | Number | optional |
Success Quality 2 | squal2 successQuality2 | Name of the second quality gained on success, in the original example this would be CP Nightmares. | String | optional |
Success Gain 2 | snum2 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. | Number | optional |
Success Quality 3 | squal3 successQuality3 | Name of the third quality gained on success. | String | optional |
Success Gain 3 | snum3 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. | Number | optional |
Success Quality 4 | squal4 successQuality4 | Name of the fourth quality gained on success. | String | optional |
Success Gain 4 | snum4 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. | Number | optional |
Success Quality 5 | squal5 successQuality5 | Name of the fifth quality gained on success. | String | optional |
Success Gain 5 | snum5 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. | Number | optional |
Success Quality 6 | squal6 successQuality6 | Name of the sixth quality gained on success. | String | optional |
Success Gain 6 | snum6 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. | Number | optional |
Failure Qualities | fals 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 | Number | required |
Success Quality 1 | qual1 failureQuality1 | Name of the first quality gained on failure, in the original example this would be Whispered Hints. | String | optional |
Success Gain 1 | num1 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. | Number | optional |
Success Quality 2 | qual2 failureQuality2 | Name of the second quality gained on failure, in the original example this would be Rostygold. | String | optional |
Success Gain 2 | num2 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. | Number | optional |
Failure Quality 3 | qual3 failureQuality3 | Name of the third quality gained on failure, in the original example this would be CP Wounds. | String | optional |
Failure Gain 3 | num3 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. | Number | optional |
Failure Quality 4 | qual4 failureQuality4 | Name of the fourth quality gained on failure. | String | optional |
Failure Gain 4 | num4 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. | Number | optional |
Failure Quality 5 | qual5 failureQuality5 | Name of the fifth quality gained on failure. | String | optional |
Failure Gain 5 | num5 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. | Number | optional |
Failure Quality 6 | qual6 failureQuality6 | Name of the sixth quality gained on failure. | String | optional |
Failure Gain 6 | num6 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. | Number | optional |