Template:Hit-Dice: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
* <nowiki>{{Hit-Dice|n = 2|op = mult}}</nowiki> - outputs double the normal hit dice value for a monster of that CR. | * <nowiki>{{Hit-Dice|n = 2|op = mult}}</nowiki> - outputs double the normal hit dice value for a monster of that CR. | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#expr: | ||
{{#expr: | |||
{{MonsterHitDice|transcludesection= | {{MonsterHitDice|transcludesection= | ||
{{#ifexpr: ({{#var:CR}} + {{{1|0}}}) < 1 | 1 | | {{#ifexpr: ({{#var:CR}} + {{{1|0}}}) < 1 | 1 | | ||
Line 29: | Line 28: | ||
}}{{{n}}}| | }}{{{n}}}| | ||
}} round 0 | }} round 0 | ||
}} | }}</includeonly> | ||
</includeonly> |
Latest revision as of 14:42, 14 December 2017
Outputs the hit dice of a monster (e.g. 12) based on its CR. Primarily used inside the Monster template. Call as follows:
{{Hit-Dice}}
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-Dice|-2}} - outputs the monster's hit dice as though CR was two lower than actual.
- {{Hit-Dice|n = 2|op = mult}} - outputs double the normal hit dice value for a monster of that CR.