Template:Hit-Points: Difference between revisions

From Epic Path
Jump to navigation Jump to search
(Created page with "<noinclude> Outputs the hit points of a monster (e.g. 31) based on its CR. Primarily used inside the Monster template. Call as follows: <pre> {{Hit-Points}} </pre> '''Parame...")
 
No edit summary
Line 13: Line 13:
'''Examples:'''
'''Examples:'''
* <nowiki>{{Hit-Points|-2}}</nowiki> - outputs the monster's hit points as though CR was two lower than actual.
* <nowiki>{{Hit-Points|-2}}</nowiki> - outputs the monster's hit points as though CR was two lower than actual.
* <nowiki>{{THit-Points|n = 2|op = mult}}</nowiki> - outputs double the normal hit points value for a monster of that CR.
* <nowiki>{{Hit-Points|n = 2|op = mult}}</nowiki> - outputs double the normal hit points value for a monster of that CR.


</noinclude><includeonly>
</noinclude><includeonly>

Revision as of 22:25, 13 December 2017

Outputs the hit points of a monster (e.g. 31) based on its CR. Primarily used inside the Monster template. Call as follows:

{{Hit-Points}}

Parameters (all are optional):

  • (unnamed) = modify CR with a positive or negative number. -2 lowers CR by two before outputting value.
  • n = modify numeric value with a positive or negative number. "n=-2" lowers skill DC by 2 before outputting the value.
  • 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:

  • {{Hit-Points|-2}} - outputs the monster's hit points as though CR was two lower than actual.
  • {{Hit-Points|n = 2|op = mult}} - outputs double the normal hit points value for a monster of that CR.