Template:Maneuver-Defense: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
</noinclude><includeonly>{{#expr:
</noinclude><includeonly>{{#expr:
   {{Challenging-Skill-DC|transcludesection=
   {{Challenging-Skill-DC|transcludesection=
       {{#ifexpr: ({{#var:CR}} + {{{1|0}}}) < 1 | 1 |  
       {{#ifexpr: ({{#var:Maneuver-Defense-CR}} + {{{1|0}}}) < 1 | 1 |  
         {{#ifexpr: ({{#var:CR}} + {{{1|0}}}) > 44 | 44 |  
         {{#ifexpr: ({{#var:Maneuver-Defense-CR}} + {{{1|0}}}) > 44 | 44 |  
             {{#expr: ({{#var:CR}} + {{{1|0}}})
             {{#expr: ({{#var:Maneuver-Defense-CR}} + {{{1|0}}})
             }}
             }}
         }}
         }}

Latest revision as of 16:44, 4 February 2021

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

{{Maneuver-Defense}}

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:

  • {{Maneuver-Defense|-2}} - outputs the monster's maneuver defense as though CR was two lower than actual.
  • {{Maneuver-Defense|n = 2|op = mult}} - outputs double the normal maneuver defense value for a monster of that CR.