Template:Skill-DC: Difference between revisions

From Epic Path
Jump to navigation Jump to search
(Created page with "{{#expr: {{#switch: {{{1}}} | Average = {{Average-Skill-DC|transcludesection= {{#ifexpr: ({{#var:CR}} + {{{2|0}}}) < 1 | 1 | {...")
 
No edit summary
Line 1: Line 1:
<noinclude>
Outputs the skill DC for the specified challenge category when called, based on the CR of the monster. Primarily used inside the Monster template. Call as follows:
<pre>
{{Skill DC|Easy}}
{{Skill DC|Average}}
{{Skill DC|Challenging}}
{{Skill DC|Hard}}
{{Skill DC|Impossible}}
</pre>
'''Parameters (all are optional):'''
* '''(unnamed)''' = modify CR with a positive or negative number. -2 lowers CR by two before outputting skill DC.
* '''n''' = modify numeric value with a positive or negative number. "n=-2" lowers skill DC by 2 before outputting the skill DC.
* '''op''' = modify the operand. Values are "op=mult" and "op=div", allowing you to multiply or divide by parameter n's value. Default is addition (with negative numbers subtracting).
'''Examples:'''
* <nowiki>{{Skill DC|Average|-2}}</nowiki> - outputs an Average skill DC as though CR was two lower than actual.
* <nowiki>{{Skill DC|Easy|n = 2|op = mult}}</nowiki> - outputs damage double normal Easy skill DC value for a monster of that CR.
You can also use <nowiki>{{Skill DC}}</nowiki> outside of a Monster template, but you must specify the CR:
* <nowiki>{{Skill DC|Impossible|12}}<nowiki> - outputs an impossible skill DC for CR 12, if used outside a monster template.  Inside a monster template, it would add 12 to the monster's existing CR.
If you don't specify a challenge category, it will default to Average.
</noinclude><includeonly>
{{#expr:
{{#expr:
   {{#switch: {{{1}}}
   {{#switch: {{{1}}}
Line 55: Line 82:
   }} round 0
   }} round 0
}}
}}
</includeonly>

Revision as of 16:34, 13 December 2017

Outputs the skill DC for the specified challenge category when called, based on the CR of the monster. Primarily used inside the Monster template. Call as follows:

{{Skill DC|Easy}}
{{Skill DC|Average}}
{{Skill DC|Challenging}}
{{Skill DC|Hard}}
{{Skill DC|Impossible}}

Parameters (all are optional):

  • (unnamed) = modify CR with a positive or negative number. -2 lowers CR by two before outputting skill DC.
  • n = modify numeric value with a positive or negative number. "n=-2" lowers skill DC by 2 before outputting the skill DC.
  • op = modify the operand. Values are "op=mult" and "op=div", allowing you to multiply or divide by parameter n's value. Default is addition (with negative numbers subtracting).

Examples:

  • {{Skill DC|Average|-2}} - outputs an Average skill DC as though CR was two lower than actual.
  • {{Skill DC|Easy|n = 2|op = mult}} - outputs damage double normal Easy skill DC value for a monster of that CR.

You can also use {{Skill DC}} outside of a Monster template, but you must specify the CR:

  • <nowiki>Template:Skill DC<nowiki> - outputs an impossible skill DC for CR 12, if used outside a monster template. Inside a monster template, it would add 12 to the monster's existing CR.

If you don't specify a challenge category, it will default to Average.