Template:Bloodied-Hit-Points: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
* <nowiki>{{Bloodied-Hit-Points|n = 2|op = mult}}</nowiki> - outputs double the normal bloodied hit point value for a monster of that CR. | * <nowiki>{{Bloodied-Hit-Points|n = 2|op = mult}}</nowiki> - outputs double the normal bloodied hit point value for a monster of that CR. | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#expr: | ||
{{#expr: | |||
{{MonsterHPs|transcludesection= | {{MonsterHPs|transcludesection= | ||
{{#ifexpr: ({{#var:CR}} + {{{1|0}}}) < 1 | 1 | | {{#ifexpr: ({{#var:Hit-Points-CR}} + {{{1|0}}}) < 1 | 1 | | ||
{{#ifexpr: ({{#var:CR}} + {{{1|0}}}) > 44 | 44 | | {{#ifexpr: ({{#var:Hit-Points-CR}} + {{{1|0}}}) > 44 | 44 | | ||
{{#expr: ({{#var:CR}} + {{{1|0}}}) | {{#expr: ({{#var:Hit-Points-CR}} + {{{1|0}}}) | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}} * | }} * | ||
{{#if:{{ | {{#if:{{#var:Role|}}| | ||
{{Monster Role|transcludesection={{ | {{Monster Role|transcludesection={{#var:Role}}HitPoints | ||
}}|1 | }}|1 | ||
}} * 0.5 | }} * 0.5 | ||
Line 33: | Line 32: | ||
}}{{{n}}}| | }}{{{n}}}| | ||
}} round 0 | }} round 0 | ||
}} | }}</includeonly> | ||
</includeonly> |
Latest revision as of 16:36, 4 February 2021
Outputs the bloodied (half) hit point value of a monster (e.g. 15) based on its CR. Primarily used inside the Monster template. Call as follows:
{{Bloodied-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:
- {{Bloodied-Hit-Points|-2}} - outputs the monster's bloodied hit point value as though CR was two lower than actual.
- {{Bloodied-Hit-Points|n = 2|op = mult}} - outputs double the normal bloodied hit point value for a monster of that CR.