Template:Edep

From Discworld MUD Wiki
Jump to: navigation, search

[edit]

Documentation
This is a template for an exponential skill dependency. It creates a horizontal bar with scale min to max, and then colours the sections within it, from red ('certainly fail') through yellow to green ('certainly succeed'). It inserts black vertical lines at the 5%, 50% and 95% marks.

The parameters are:

  • skill: Name of skill
  • shortname: Shortname (usually 2.2.2.2 format, eg. 'ma.me.el.ai').
  • barsize: Size of skillbar section in pixels (default: 300)
  • scale-min: Lowest scale value
  • scale-max: Highest scale value
  • threshold-low: Miniumum bonus for any chance of success
  • half-life: Increase in bonus required for chance of failure to halve.

Specifically, the gradations are:

0-5%
5-15%
15-25%
25-35%
35-45%
45-55%
55-65%
65-75%
75-85%
85-95%
95-100%