Template:Skilling success chart
Jump to navigation
Jump to search
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:
- Pages where the chance of obtaining an item (such as fishing raw tuna, cooking anglerfish, mining runite rocks, cutting yew trees) or an NPC (such as hunting black chinchompas, thieving from Knights of Ardougne) are dependent on the player's level in the appropriate skill.
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 .