Template:Skilling success chart

{"type":"scatter","options":{"tooltips":{"intersect":false,"format":"skillingSuccess"},"datasetsPerGroup":3,"aspectRatio":1.35,"title":{"display":false,"font":{"size":18},"position":"top"},"scales":{"y":{"ticks":{"stepSize":0.1,"format":"percent"},"scaleLabel":{"display":true,"labelString":"Success rate"}},"x":{"ticks":{"stepSize":1},"scaleLabel":{"display":true,"labelString":"Level"}}},"maintainAspectRatio":false,"fill":false},"minWidth":"540px","resizable":true,"width":"540px","isChartObj":true,"height":"400px","isFinished":true,"minHeight":"400px","data":{"datasets":[]}}
Template documentation
This documentation is transcluded from Template:Skilling success chart/doc. [edit] [history] [purge]
Template:Skilling success chart invokes function main in Module:Skilling success chart using Lua.

Template used to add a graph of skilling success chances on a page.

Where to use:

Usage

{{Skilling success chart
|label=Graph title
|xlabel=Label for x axis, defaults to "Level"
|ylabel=Label for y axis, defaults to "Success rate"
|cascade=Set to "yes" to use cascading interpolation, meaning rolls are performed sequentially on failure. When this is enabled, the order of entries matters.
|birdhouse=Set to "yes" to use birdhouse interpolation. 
|caviar=Set to "yes" to use caviar interpolation.
|denom1=Denominator for caviar interpolation.
|showbefore=Option to display graph before the required level; use "no" to omit impossible chances (e.g. Chopping yews at level 20).
|label1=Item used or resource gathered (e.g. bronze axe or raw tuna)
|low1=The chance of success if the player's level in that skill is 1, out of 255 (even if it's not possible to perform that action at that level)
|bonuslow1=In case a secondary opportunity is given for the skill-check to succeed when the main roll fails, the low chance for this bonus roll (e.g. When fishing raw dark crabs and the first Diary-boosted roll fails, it falls back to the regular skill-check as a bonus roll).
|bonushigh1=The corresponding high chance for the bonus roll.
|high1=The chance of success if the player's level in that skill is 99, out of 255
|req1=The skill level required to perform an action (e.g. 85 for fishing raw dark crabs)
|color1=Colour used for the graph line. Fitting colours are recommended, e.g. "blue" for raw cod. Hex colour codes such as "#cb410b" work too.
|image1=Item used or resource gathered (e.g. Bronze axe.png or Raw tuna.png)
}}

Chance of Success

The chance of success is a fraction of , which is then interpolated between level and according to this function:

The final value is then clamped between and .

Although the formula used by the engine uses fractions of , the highs and lows are defined in the RuneScript code as fractions of . Hence, success percentages shared with the community are most often derived from the values found in the code, and are therefore usually slightly inaccurate. The skilling success chart template mimics the same inputs that developers can see in the code, and therefore enter the high and low chances as values out of .

Example

{"type":"scatter","options":{"tooltips":{"intersect":false,"format":"skillingSuccess"},"datasetsPerGroup":3,"aspectRatio":1.35,"title":{"display":true,"font":{"size":18},"text":"Yew tree cut chance","position":"top"},"scales":{"y":{"ticks":{"stepSize":0.1,"format":"percent"},"scaleLabel":{"display":true,"labelString":"Success rate"}},"x":{"ticks":{"stepSize":1},"scaleLabel":{"display":true,"labelString":"Level"}}},"maintainAspectRatio":false,"fill":false},"minWidth":"540px","resizable":true,"width":"540px","isChartObj":true,"height":"400px","isFinished":true,"minHeight":"400px","data":{"datasets":[{"fill":false,"borderCapStyle":"round","label":"Bronze  ","showLine":true,"data":[{"y":0.0390625,"x":60}],"pointStyleImg":"Bronze axe.png","hoverBackgroundColor":"rgba(151,198,222,0.5)","backgroundColor":"rgba(166,206,227,0.3)","borderDash":[5,5],"borderColor":"rgba(166,206,227,1)","hoverBorderColor":"rgba(151,198,222,1)","pointRadius":0,"clip":5,"baseColor":"saddlebrown"},{"pointRadius":0,"label":"Bronze  ","showLine":true,"data":[{"y":0.0390625,"x":60},{"y":0.0390625,"x":61},{"y":0.0390625,"x":62},{"y":0.0390625,"x":63},{"y":0.0390625,"x":64},{"y":0.0390625,"x":65},{"y":0.0390625,"x":66},{"y":0.0390625,"x":67},{"y":0.0390625,"x":68},{"y":0.04296875,"x":69},{"y":0.04296875,"x":70},{"y":0.04296875,"x":71},{"y":0.04296875,"x":72},{"y":0.04296875,"x":73},{"y":0.04296875,"x":74},{"y":0.04296875,"x":75},{"y":0.04296875,"x":76},{"y":0.04296875,"x":77},{"y":0.04296875,"x":78},{"y":0.04296875,"x":79},{"y":0.04296875,"x":80},{"y":0.046875,"x":81},{"y":0.046875,"x":82},{"y":0.046875,"x":83},{"y":0.046875,"x":84},{"y":0.046875,"x":85},{"y":0.046875,"x":86},{"y":0.046875,"x":87},{"y":0.046875,"x":88},{"y":0.046875,"x":89},{"y":0.046875,"x":90},{"y":0.046875,"x":91},{"y":0.046875,"x":92},{"y":0.05078125,"x":93},{"y":0.05078125,"x":94},{"y":0.05078125,"x":95},{"y":0.05078125,"x":96},{"y":0.05078125,"x":97},{"y":0.05078125,"x":98},{"y":0.05078125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(29,114,171,0.5)","backgroundColor":"rgba(31,120,180,0.3)","borderDash":[],"borderColor":"rgba(31,120,180,1)","hoverBorderColor":"rgba(29,114,171,1)","borderCapStyle":"round","clip":5,"baseColor":"saddlebrown"},{"hoverBorderColor":"rgba(169,219,124,1)","showLine":true,"data":[],"borderColor":"rgba(178,223,138,1)","backgroundColor":"rgba(178,223,138,0.3)","hoverBackgroundColor":"rgba(169,219,124,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Iron  ","showLine":true,"data":[{"y":0.05859375,"x":60}],"pointStyleImg":"Iron axe.png","hoverBackgroundColor":"rgba(48,152,42,0.5)","backgroundColor":"rgba(51,160,44,0.3)","borderDash":[5,5],"borderColor":"rgba(51,160,44,1)","hoverBorderColor":"rgba(48,152,42,1)","pointRadius":0,"clip":5,"baseColor":"dimgray"},{"pointRadius":0,"label":"Iron  ","showLine":true,"data":[{"y":0.05859375,"x":60},{"y":0.05859375,"x":61},{"y":0.05859375,"x":62},{"y":0.05859375,"x":63},{"y":0.05859375,"x":64},{"y":0.05859375,"x":65},{"y":0.0625,"x":66},{"y":0.0625,"x":67},{"y":0.0625,"x":68},{"y":0.0625,"x":69},{"y":0.0625,"x":70},{"y":0.0625,"x":71},{"y":0.0625,"x":72},{"y":0.06640625,"x":73},{"y":0.06640625,"x":74},{"y":0.06640625,"x":75},{"y":0.06640625,"x":76},{"y":0.06640625,"x":77},{"y":0.06640625,"x":78},{"y":0.06640625,"x":79},{"y":0.06640625,"x":80},{"y":0.0703125,"x":81},{"y":0.0703125,"x":82},{"y":0.0703125,"x":83},{"y":0.0703125,"x":84},{"y":0.0703125,"x":85},{"y":0.0703125,"x":86},{"y":0.0703125,"x":87},{"y":0.07421875,"x":88},{"y":0.07421875,"x":89},{"y":0.07421875,"x":90},{"y":0.07421875,"x":91},{"y":0.07421875,"x":92},{"y":0.07421875,"x":93},{"y":0.07421875,"x":94},{"y":0.07421875,"x":95},{"y":0.078125,"x":96},{"y":0.078125,"x":97},{"y":0.078125,"x":98},{"y":0.078125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(250,135,134,0.5)","backgroundColor":"rgba(251,154,153,0.3)","borderDash":[],"borderColor":"rgba(251,154,153,1)","hoverBorderColor":"rgba(250,135,134,1)","borderCapStyle":"round","clip":5,"baseColor":"dimgray"},{"hoverBorderColor":"rgba(216,25,27,1)","showLine":true,"data":[],"borderColor":"rgba(227,26,28,1)","backgroundColor":"rgba(227,26,28,0.3)","hoverBackgroundColor":"rgba(216,25,27,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Steel  ","showLine":true,"data":[{"y":0.07421875,"x":60}],"pointStyleImg":"Steel axe.png","hoverBackgroundColor":"rgba(253,183,93,0.5)","backgroundColor":"rgba(253,191,111,0.3)","borderDash":[5,5],"borderColor":"rgba(253,191,111,1)","hoverBorderColor":"rgba(253,183,93,1)","pointRadius":0,"clip":5,"baseColor":"lightgray"},{"pointRadius":0,"label":"Steel  ","showLine":true,"data":[{"y":0.07421875,"x":60},{"y":0.07421875,"x":61},{"y":0.078125,"x":62},{"y":0.078125,"x":63},{"y":0.078125,"x":64},{"y":0.078125,"x":65},{"y":0.078125,"x":66},{"y":0.078125,"x":67},{"y":0.08203125,"x":68},{"y":0.08203125,"x":69},{"y":0.08203125,"x":70},{"y":0.08203125,"x":71},{"y":0.08203125,"x":72},{"y":0.08203125,"x":73},{"y":0.0859375,"x":74},{"y":0.0859375,"x":75},{"y":0.0859375,"x":76},{"y":0.0859375,"x":77},{"y":0.0859375,"x":78},{"y":0.08984375,"x":79},{"y":0.08984375,"x":80},{"y":0.08984375,"x":81},{"y":0.08984375,"x":82},{"y":0.08984375,"x":83},{"y":0.08984375,"x":84},{"y":0.09375,"x":85},{"y":0.09375,"x":86},{"y":0.09375,"x":87},{"y":0.09375,"x":88},{"y":0.09375,"x":89},{"y":0.09375,"x":90},{"y":0.09765625,"x":91},{"y":0.09765625,"x":92},{"y":0.09765625,"x":93},{"y":0.09765625,"x":94},{"y":0.09765625,"x":95},{"y":0.09765625,"x":96},{"y":0.1015625,"x":97},{"y":0.1015625,"x":98},{"y":0.1015625,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(242,121,0,0.5)","backgroundColor":"rgba(255,127,0,0.3)","borderDash":[],"borderColor":"rgba(255,127,0,1)","hoverBorderColor":"rgba(242,121,0,1)","borderCapStyle":"round","clip":5,"baseColor":"lightgray"},{"hoverBorderColor":"rgba(193,165,207,1)","showLine":true,"data":[],"borderColor":"rgba(202,178,214,1)","backgroundColor":"rgba(202,178,214,0.3)","hoverBackgroundColor":"rgba(193,165,207,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Black  ","showLine":true,"data":[{"y":0.08203125,"x":60}],"pointStyleImg":"Black axe.png","hoverBackgroundColor":"rgba(101,58,146,0.5)","backgroundColor":"rgba(106,61,154,0.3)","borderDash":[5,5],"borderColor":"rgba(106,61,154,1)","hoverBorderColor":"rgba(101,58,146,1)","pointRadius":0,"clip":5,"baseColor":"black"},{"pointRadius":0,"label":"Black  ","showLine":true,"data":[{"y":0.08203125,"x":60},{"y":0.0859375,"x":61},{"y":0.0859375,"x":62},{"y":0.0859375,"x":63},{"y":0.0859375,"x":64},{"y":0.0859375,"x":65},{"y":0.08984375,"x":66},{"y":0.08984375,"x":67},{"y":0.08984375,"x":68},{"y":0.08984375,"x":69},{"y":0.08984375,"x":70},{"y":0.09375,"x":71},{"y":0.09375,"x":72},{"y":0.09375,"x":73},{"y":0.09375,"x":74},{"y":0.09375,"x":75},{"y":0.09765625,"x":76},{"y":0.09765625,"x":77},{"y":0.09765625,"x":78},{"y":0.09765625,"x":79},{"y":0.09765625,"x":80},{"y":0.1015625,"x":81},{"y":0.1015625,"x":82},{"y":0.1015625,"x":83},{"y":0.1015625,"x":84},{"y":0.1015625,"x":85},{"y":0.1015625,"x":86},{"y":0.10546875,"x":87},{"y":0.10546875,"x":88},{"y":0.10546875,"x":89},{"y":0.10546875,"x":90},{"y":0.10546875,"x":91},{"y":0.109375,"x":92},{"y":0.109375,"x":93},{"y":0.109375,"x":94},{"y":0.109375,"x":95},{"y":0.109375,"x":96},{"y":0.11328125,"x":97},{"y":0.11328125,"x":98},{"y":0.11328125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(210,237,146,0.5)","backgroundColor":"rgba(217,240,163,0.3)","borderDash":[],"borderColor":"rgba(217,240,163,1)","hoverBorderColor":"rgba(210,237,146,1)","borderCapStyle":"round","clip":5,"baseColor":"black"},{"hoverBorderColor":"rgba(163,217,128,1)","showLine":true,"data":[],"borderColor":"rgba(173,221,142,1)","backgroundColor":"rgba(173,221,142,0.3)","hoverBackgroundColor":"rgba(163,217,128,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Mithril  ","showLine":true,"data":[{"y":0.09375,"x":60}],"pointStyleImg":"Mithril axe.png","hoverBackgroundColor":"rgba(109,193,110,0.5)","backgroundColor":"rgba(120,198,121,0.3)","borderDash":[5,5],"borderColor":"rgba(120,198,121,1)","hoverBorderColor":"rgba(109,193,110,1)","pointRadius":0,"clip":5,"baseColor":"slateblue"},{"pointRadius":0,"label":"Mithril  ","showLine":true,"data":[{"y":0.09375,"x":60},{"y":0.09375,"x":61},{"y":0.09375,"x":62},{"y":0.09375,"x":63},{"y":0.09765625,"x":64},{"y":0.09765625,"x":65},{"y":0.09765625,"x":66},{"y":0.09765625,"x":67},{"y":0.09765625,"x":68},{"y":0.1015625,"x":69},{"y":0.1015625,"x":70},{"y":0.1015625,"x":71},{"y":0.1015625,"x":72},{"y":0.1015625,"x":73},{"y":0.10546875,"x":74},{"y":0.10546875,"x":75},{"y":0.10546875,"x":76},{"y":0.10546875,"x":77},{"y":0.109375,"x":78},{"y":0.109375,"x":79},{"y":0.109375,"x":80},{"y":0.109375,"x":81},{"y":0.109375,"x":82},{"y":0.11328125,"x":83},{"y":0.11328125,"x":84},{"y":0.11328125,"x":85},{"y":0.11328125,"x":86},{"y":0.11328125,"x":87},{"y":0.1171875,"x":88},{"y":0.1171875,"x":89},{"y":0.1171875,"x":90},{"y":0.1171875,"x":91},{"y":0.12109375,"x":92},{"y":0.12109375,"x":93},{"y":0.12109375,"x":94},{"y":0.12109375,"x":95},{"y":0.12109375,"x":96},{"y":0.125,"x":97},{"y":0.125,"x":98},{"y":0.125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(62,162,88,0.5)","backgroundColor":"rgba(65,171,93,0.3)","borderDash":[],"borderColor":"rgba(65,171,93,1)","hoverBorderColor":"rgba(62,162,88,1)","borderCapStyle":"round","clip":5,"baseColor":"slateblue"},{"hoverBorderColor":"rgba(33,125,64,1)","showLine":true,"data":[],"borderColor":"rgba(35,132,67,1)","backgroundColor":"rgba(35,132,67,0.3)","hoverBackgroundColor":"rgba(33,125,64,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Adamant  ","showLine":true,"data":[{"y":0.109375,"x":60}],"pointStyleImg":"Adamant axe.png","hoverBackgroundColor":"rgba(0,99,52,0.5)","backgroundColor":"rgba(0,104,55,0.3)","borderDash":[5,5],"borderColor":"rgba(0,104,55,1)","hoverBorderColor":"rgba(0,99,52,1)","pointRadius":0,"clip":5,"baseColor":"seagreen"},{"pointRadius":0,"label":"Adamant  ","showLine":true,"data":[{"y":0.109375,"x":60},{"y":0.109375,"x":61},{"y":0.11328125,"x":62},{"y":0.11328125,"x":63},{"y":0.11328125,"x":64},{"y":0.11328125,"x":65},{"y":0.1171875,"x":66},{"y":0.1171875,"x":67},{"y":0.1171875,"x":68},{"y":0.1171875,"x":69},{"y":0.12109375,"x":70},{"y":0.12109375,"x":71},{"y":0.12109375,"x":72},{"y":0.12109375,"x":73},{"y":0.125,"x":74},{"y":0.125,"x":75},{"y":0.125,"x":76},{"y":0.125,"x":77},{"y":0.12890625,"x":78},{"y":0.12890625,"x":79},{"y":0.12890625,"x":80},{"y":0.12890625,"x":81},{"y":0.1328125,"x":82},{"y":0.1328125,"x":83},{"y":0.1328125,"x":84},{"y":0.1328125,"x":85},{"y":0.13671875,"x":86},{"y":0.13671875,"x":87},{"y":0.13671875,"x":88},{"y":0.13671875,"x":89},{"y":0.140625,"x":90},{"y":0.140625,"x":91},{"y":0.140625,"x":92},{"y":0.140625,"x":93},{"y":0.14453125,"x":94},{"y":0.14453125,"x":95},{"y":0.14453125,"x":96},{"y":0.14453125,"x":97},{"y":0.1484375,"x":98},{"y":0.1484375,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(0,66,39,0.5)","backgroundColor":"rgba(0,69,41,0.3)","borderDash":[],"borderColor":"rgba(0,69,41,1)","hoverBorderColor":"rgba(0,66,39,1)","borderCapStyle":"round","clip":5,"baseColor":"seagreen"},{"hoverBorderColor":"rgba(254,222,125,1)","showLine":true,"data":[],"borderColor":"rgba(254,227,145,1)","backgroundColor":"rgba(254,227,145,0.3)","hoverBackgroundColor":"rgba(254,222,125,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Rune  ","showLine":true,"data":[{"y":0.12890625,"x":60}],"pointStyleImg":"Rune axe.png","hoverBackgroundColor":"rgba(254,190,62,0.5)","backgroundColor":"rgba(254,196,79,0.3)","borderDash":[5,5],"borderColor":"rgba(254,196,79,1)","hoverBorderColor":"rgba(254,190,62,1)","pointRadius":0,"clip":5,"baseColor":"steelblue"},{"pointRadius":0,"label":"Rune  ","showLine":true,"data":[{"y":0.12890625,"x":60},{"y":0.12890625,"x":61},{"y":0.1328125,"x":62},{"y":0.1328125,"x":63},{"y":0.1328125,"x":64},{"y":0.13671875,"x":65},{"y":0.13671875,"x":66},{"y":0.13671875,"x":67},{"y":0.140625,"x":68},{"y":0.140625,"x":69},{"y":0.140625,"x":70},{"y":0.140625,"x":71},{"y":0.14453125,"x":72},{"y":0.14453125,"x":73},{"y":0.14453125,"x":74},{"y":0.1484375,"x":75},{"y":0.1484375,"x":76},{"y":0.1484375,"x":77},{"y":0.15234375,"x":78},{"y":0.15234375,"x":79},{"y":0.15234375,"x":80},{"y":0.15234375,"x":81},{"y":0.15625,"x":82},{"y":0.15625,"x":83},{"y":0.15625,"x":84},{"y":0.16015625,"x":85},{"y":0.16015625,"x":86},{"y":0.16015625,"x":87},{"y":0.1640625,"x":88},{"y":0.1640625,"x":89},{"y":0.1640625,"x":90},{"y":0.16796875,"x":91},{"y":0.16796875,"x":92},{"y":0.16796875,"x":93},{"y":0.16796875,"x":94},{"y":0.171875,"x":95},{"y":0.171875,"x":96},{"y":0.171875,"x":97},{"y":0.17578125,"x":98},{"y":0.17578125,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(254,146,26,0.5)","backgroundColor":"rgba(254,153,41,0.3)","borderDash":[],"borderColor":"rgba(254,153,41,1)","hoverBorderColor":"rgba(254,146,26,1)","borderCapStyle":"round","clip":5,"baseColor":"steelblue"},{"hoverBorderColor":"rgba(225,106,18,1)","showLine":true,"data":[],"borderColor":"rgba(236,112,20,1)","backgroundColor":"rgba(236,112,20,0.3)","hoverBackgroundColor":"rgba(225,106,18,0.5)","clip":5,"fill":false},{"fill":false,"borderCapStyle":"round","label":"Dragon  ","showLine":true,"data":[{"y":0.140625,"x":61}],"pointStyleImg":"Dragon axe.png","hoverBackgroundColor":"rgba(194,72,2,0.5)","backgroundColor":"rgba(204,76,2,0.3)","borderDash":[5,5],"borderColor":"rgba(204,76,2,1)","hoverBorderColor":"rgba(194,72,2,1)","pointRadius":0,"clip":5,"baseColor":"firebrick"},{"pointRadius":0,"label":"Dragon  ","showLine":true,"data":[{"y":0.140625,"x":61},{"y":0.140625,"x":62},{"y":0.140625,"x":63},{"y":0.14453125,"x":64},{"y":0.14453125,"x":65},{"y":0.14453125,"x":66},{"y":0.1484375,"x":67},{"y":0.1484375,"x":68},{"y":0.1484375,"x":69},{"y":0.15234375,"x":70},{"y":0.15234375,"x":71},{"y":0.15234375,"x":72},{"y":0.15625,"x":73},{"y":0.15625,"x":74},{"y":0.15625,"x":75},{"y":0.15625,"x":76},{"y":0.16015625,"x":77},{"y":0.16015625,"x":78},{"y":0.16015625,"x":79},{"y":0.1640625,"x":80},{"y":0.1640625,"x":81},{"y":0.1640625,"x":82},{"y":0.16796875,"x":83},{"y":0.16796875,"x":84},{"y":0.16796875,"x":85},{"y":0.171875,"x":86},{"y":0.171875,"x":87},{"y":0.171875,"x":88},{"y":0.17578125,"x":89},{"y":0.17578125,"x":90},{"y":0.17578125,"x":91},{"y":0.1796875,"x":92},{"y":0.1796875,"x":93},{"y":0.1796875,"x":94},{"y":0.18359375,"x":95},{"y":0.18359375,"x":96},{"y":0.18359375,"x":97},{"y":0.1875,"x":98},{"y":0.1875,"x":99}],"fill":false,"hoverBackgroundColor":"rgba(145,49,4,0.5)","backgroundColor":"rgba(153,52,4,0.3)","borderDash":[],"borderColor":"rgba(153,52,4,1)","hoverBorderColor":"rgba(145,49,4,1)","borderCapStyle":"round","clip":5,"baseColor":"firebrick"},{"hoverBorderColor":"rgba(97,35,6,1)","showLine":true,"data":[],"borderColor":"rgba(102,37,6,1)","backgroundColor":"rgba(102,37,6,0.3)","hoverBackgroundColor":"rgba(97,35,6,0.5)","clip":5,"fill":false}]}}